Skip to content

Commit 017ec87

Browse files
committed
finish fixing clippy lints, add changelog
1 parent 8fc5cea commit 017ec87

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,9 @@ Documentation
5353
Changelog
5454
---------
5555

56+
* to be released
57+
- Switch to 2021 edition.
58+
5659
* 0.6.1
5760
- Fix deprecation warning and remove `#[deny(warnings)]` (a future
5861
compatibility hazard in libraries).

src/lib.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@
6161
#![deny(missing_docs)]
6262
#![deny(missing_debug_implementations)]
6363
#![warn(clippy::pedantic)]
64+
#![allow(clippy::manual_let_else)]
6465

6566
use std::borrow::Borrow;
6667
use std::cmp;
@@ -422,7 +423,7 @@ impl<'a, K: Ord + Clone, W: Saturating + Ord + Clone> FromIterator<(&'a K, &'a W
422423
where
423424
T: IntoIterator<Item = (&'a K, &'a W)>,
424425
{
425-
CodeBuilder::from_iter(weights.into_iter().map(|(k, v)| (k.clone(), v.clone())))
426+
weights.into_iter().map(|(k, v)| (k.clone(), v.clone())).collect()
426427
}
427428
}
428429

@@ -554,7 +555,7 @@ mod tests {
554555
};
555556

556557
at >= ct || len("CT") <= len("AT") ||
557-
ag.saturating_add(at).saturating_add(cg).saturating_add(ct).saturating_add(tg) >= u32::MAX
558+
ag.saturating_add(at).saturating_add(cg).saturating_add(ct).saturating_add(tg) == u32::MAX
558559
}
559560

560561
fn encode_decode_bytes(symbols: Vec<u8>) -> bool {

0 commit comments

Comments
 (0)