diff --git a/CHANGELOG.md b/CHANGELOG.md index d42ef499..8b2741ad 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -351,7 +351,7 @@ date: 2023-05-12T11:02:09+08:00 ### Changes -- Make `HybridCache` clonable. +- Make `HybridCache` cloneable. ## 2024-04-27 @@ -566,7 +566,7 @@ date: 2023-05-12T11:02:09+08:00 ### Changes -- Make eviction config clonable. +- Make eviction config cloneable. ## 2024-03-13 diff --git a/foyer-common/src/runtime.rs b/foyer-common/src/runtime.rs index 14be9c18..1a149741 100644 --- a/foyer-common/src/runtime.rs +++ b/foyer-common/src/runtime.rs @@ -67,7 +67,7 @@ impl From for BackgroundShutdownRuntime { } } -/// A non-clonable runtime handle. +/// A non-cloneable runtime handle. #[derive(Debug)] pub struct SingletonHandle(Handle); diff --git a/foyer-storage/src/runtime.rs b/foyer-storage/src/runtime.rs index a2266e90..4b000e61 100644 --- a/foyer-storage/src/runtime.rs +++ b/foyer-storage/src/runtime.rs @@ -27,7 +27,7 @@ struct RuntimeInner { user_runtime_handle: SingletonHandle, } -/// [`Runtime`] holds the runtime reference and non-clonable handles to prevent handle usage after runtime shutdown. +/// [`Runtime`] holds the runtime reference and non-cloneable handles to prevent handle usage after runtime shutdown. #[derive(Debug, Clone)] pub struct Runtime { inner: Arc, @@ -72,17 +72,17 @@ impl Runtime { } } - /// Get the non-clonable read runtime handle. + /// Get the non-cloneable read runtime handle. pub fn read(&self) -> &SingletonHandle { &self.inner.read_runtime_handle } - /// Get the non-clonable write runtime handle. + /// Get the non-cloneable write runtime handle. pub fn write(&self) -> &SingletonHandle { &self.inner.write_runtime_handle } - /// Get the non-clonable user runtime handle. + /// Get the non-cloneable user runtime handle. pub fn user(&self) -> &SingletonHandle { &self.inner.user_runtime_handle }