Skip to content

Commit

Permalink
chore: formatting and docs clippy lints
Browse files Browse the repository at this point in the history
  • Loading branch information
conradludgate committed Jan 10, 2025
1 parent dd5b786 commit 8b4e984
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion libs/utils/src/generation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ impl Serialize for Generation {
// that include an optional generation should convert None to an
// Option<Generation>::None
Err(serde::ser::Error::custom(
"Tried to serialize invalid generation ({self})",
format!("Tried to serialize invalid generation ({self:?})"),
))
}
}
Expand Down
4 changes: 2 additions & 2 deletions pageserver/src/tenant/storage_layer/inmemory_layer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,8 @@ const MAX_SUPPORTED_BLOB_LEN_BITS: usize = {
///
/// Layout:
/// - 1 bit: `will_init`
/// - [`MAX_SUPPORTED_BLOB_LEN_BITS`]: `len`
/// - [`MAX_SUPPORTED_POS_BITS`]: `pos`
/// - [`MAX_SUPPORTED_BLOB_LEN_BITS`](MAX_SUPPORTED_BLOB_LEN_BITS): `len`
/// - [`MAX_SUPPORTED_POS_BITS`](IndexEntry::MAX_SUPPORTED_POS_BITS): `pos`
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
pub struct IndexEntry(u64);

Expand Down

0 comments on commit 8b4e984

Please sign in to comment.