Skip to content

Commit

Permalink
fix: pass rustdoc test for docs.rs
Browse files Browse the repository at this point in the history
Signed-off-by: MrCroxx <[email protected]>
  • Loading branch information
MrCroxx committed Dec 3, 2024
1 parent 0ef292b commit 4a3cfca
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ check-all:
test:
RUST_BACKTRACE=1 cargo nextest run --all --features "strict_assertions,sanity,prometheus,prometheus-client_0_22,opentelemetry_0_26,opentelemetry_0_27"
RUST_BACKTRACE=1 cargo test --doc
RUSTDOCFLAGS="--cfg docsrs -D warnings" cargo +nightly doc --features "nightly,prometheus,prometheus-client,prometheus-client_0_22,opentelemetry,opentelemetry_0_26,opentelemetry_0_27"

test-ignored:
RUST_BACKTRACE=1 cargo nextest run --run-ignored ignored-only --no-capture --workspace --features "strict_assertions,sanity"
Expand Down
2 changes: 1 addition & 1 deletion foyer-memory/src/raw.rs
Original file line number Diff line number Diff line change
Expand Up @@ -804,7 +804,7 @@ where
}
}

/// The state of [`Fetch`].
/// The state of `fetch`.
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
pub enum FetchState {
/// Cache hit.
Expand Down
2 changes: 1 addition & 1 deletion foyer-memory/src/record.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ pub enum CacheHint {
Normal,
/// Suggest the priority of the entry is low.
///
/// Used by [`crate::eviction::lru::Lru`].
/// Used by LRU.
Low,
}

Expand Down
2 changes: 1 addition & 1 deletion foyer-storage/src/device/bytes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -436,7 +436,7 @@ impl IoBytes {
///
/// Otherwise, [`None`] is returned.
///
/// It is strongly recommended to use `into_io_buffer` instead if you don't want to keep the original [`IoByes`]
/// It is strongly recommended to use `into_io_buffer` instead if you don't want to keep the original [`IoBytes`]
/// in the [`Err`] path. See `Arc::try_unwrap` and `Arc::into_inner` docs.
///
/// Note: The [`IoBytes`] can be a slice of the underlying [`IoBuffer`].
Expand Down
2 changes: 1 addition & 1 deletion foyer/src/hybrid/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ where
///
/// The admission picker is used to pick the entries that can be inserted into the disk cache store.
///
/// Default: [`AdmitAllPicker`].
/// Default: [`crate::AdmitAllPicker`].
pub fn with_admission_picker(self, admission_picker: Arc<dyn AdmissionPicker<Key = K>>) -> Self {
let builder = self.builder.with_admission_picker(admission_picker);
Self {
Expand Down

0 comments on commit 4a3cfca

Please sign in to comment.