Skip to content

Commit

Permalink
chore: fix typos with the lates typos checker
Browse files Browse the repository at this point in the history
Signed-off-by: MrCroxx <mrcroxx@outlook.com>
  • Loading branch information
MrCroxx committed Oct 8, 2024
1 parent d49c480 commit 57bfb83
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,7 @@ date: 2023-05-12T11:02:09+08:00

### Changes

- Make `HybridCache` clonable.
- Make `HybridCache` cloneable.

## 2024-04-27

Expand Down Expand Up @@ -566,7 +566,7 @@ date: 2023-05-12T11:02:09+08:00

### Changes

- Make eviction config clonable.
- Make eviction config cloneable.

## 2024-03-13

Expand Down
2 changes: 1 addition & 1 deletion foyer-common/src/runtime.rs
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ impl From<Runtime> for BackgroundShutdownRuntime {
}
}

/// A non-clonable runtime handle.
/// A non-cloneable runtime handle.
#[derive(Debug)]
pub struct SingletonHandle(Handle);

Expand Down
8 changes: 4 additions & 4 deletions foyer-storage/src/runtime.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<RuntimeInner>,
Expand Down Expand Up @@ -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
}
Expand Down

0 comments on commit 57bfb83

Please sign in to comment.