run clippy for no, default, and all features

This should be good enough for now.
This commit is contained in:
Charles Hall 2024-04-27 20:23:59 -07:00
parent d21221d54e
commit 806fabc4c7
No known key found for this signature in database
GPG key ID: 7B8E0645816E07CF
3 changed files with 40 additions and 13 deletions

View file

@ -18,6 +18,7 @@ pub fn millis_since_unix_epoch() -> u64 {
.as_millis() as u64
}
#[cfg(any(feature = "rocksdb", feature = "sqlite"))]
pub fn increment(old: Option<&[u8]>) -> Option<Vec<u8>> {
let number = match old.map(|bytes| bytes.try_into()) {
Some(Ok(bytes)) => {