diff --git a/libs/utils/src/generation.rs b/libs/utils/src/generation.rs index 5970836033c8..585e11db75cc 100644 --- a/libs/utils/src/generation.rs +++ b/libs/utils/src/generation.rs @@ -113,7 +113,7 @@ impl Serialize for Generation { // that include an optional generation should convert None to an // Option::None Err(serde::ser::Error::custom( - "Tried to serialize invalid generation ({self})", + format!("Tried to serialize invalid generation ({self:?})"), )) } } diff --git a/pageserver/src/tenant/storage_layer/inmemory_layer.rs b/pageserver/src/tenant/storage_layer/inmemory_layer.rs index 71e53da20f7f..8a12f306749d 100644 --- a/pageserver/src/tenant/storage_layer/inmemory_layer.rs +++ b/pageserver/src/tenant/storage_layer/inmemory_layer.rs @@ -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);