Skip to content

Commit

Permalink
Fix clippy + uuid
Browse files Browse the repository at this point in the history
  • Loading branch information
DelSkayn committed Aug 15, 2024
1 parent 2bea824 commit c087489
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/implementations/primitives.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use std::{io, u64};
use std::io;

use super::super::Revisioned;
use super::read_buffer;
Expand Down Expand Up @@ -295,7 +295,7 @@ impl Revisioned for i128 {
where
Self: Sized,
{
decode_u128(r).map(|x| gazgiz_128(x))
decode_u128(r).map(gazgiz_128)
}
}

Expand Down
3 changes: 1 addition & 2 deletions src/implementations/uuid.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,12 @@

use super::super::Error;
use super::super::Revisioned;
use super::vecs::serialize_slice;
use uuid::Uuid;

impl Revisioned for Uuid {
#[inline]
fn serialize_revisioned<W: std::io::Write>(&self, writer: &mut W) -> Result<(), Error> {
serialize_slice(self.as_bytes(), writer)
writer.write_all(self.as_bytes()).map_err(Error::Io)
}

#[inline]
Expand Down

0 comments on commit c087489

Please sign in to comment.