Skip to content

Commit 7648ce9

Browse files
committed
Auto merge of #222 - Amanieu:fix_ci4, r=Amanieu
Fix warnings
2 parents 39d6351 + d55997e commit 7648ce9

File tree

4 files changed

+6
-5
lines changed

4 files changed

+6
-5
lines changed

src/lib.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@
2626
clippy::doc_markdown,
2727
clippy::module_name_repetitions,
2828
clippy::must_use_candidate,
29-
clippy::option_if_let_else
29+
clippy::option_if_let_else,
30+
clippy::redundant_else
3031
)]
3132
#![warn(missing_docs)]
3233
#![warn(rust_2018_idioms)]

src/raw/generic.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ impl Group {
5555
struct AlignedBytes {
5656
_align: [Group; 0],
5757
bytes: [u8; Group::WIDTH],
58-
};
58+
}
5959
const ALIGNED_BYTES: AlignedBytes = AlignedBytes {
6060
_align: [],
6161
bytes: [EMPTY; Group::WIDTH],

src/raw/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -688,9 +688,9 @@ impl<T, A: Allocator + Clone> RawTable<T, A> {
688688
return Group::load_aligned(self.ctrl(0))
689689
.match_empty_or_deleted()
690690
.lowest_set_bit_nonzero();
691-
} else {
692-
return result;
693691
}
692+
693+
return result;
694694
}
695695
}
696696
probe_seq.move_next(self.bucket_mask);

src/raw/sse2.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ impl Group {
3434
struct AlignedBytes {
3535
_align: [Group; 0],
3636
bytes: [u8; Group::WIDTH],
37-
};
37+
}
3838
const ALIGNED_BYTES: AlignedBytes = AlignedBytes {
3939
_align: [],
4040
bytes: [EMPTY; Group::WIDTH],

0 commit comments

Comments
 (0)