mirror of
https://gitlab.computer.surgery/matrix/grapevine.git
synced 2025-12-17 15:51:23 +01:00
run clippy for no, default, and all features
This should be good enough for now.
This commit is contained in:
parent
d21221d54e
commit
806fabc4c7
3 changed files with 40 additions and 13 deletions
|
|
@ -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)) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue