Skip to content

Commit

Permalink
Merge pull request #201 from BaxHugh/correction/typo
Browse files Browse the repository at this point in the history
Correct typo in DiskCacheError enum variants
  • Loading branch information
jaemk committed Apr 26, 2024
2 parents 39d974c + 97f38e7 commit a3ccc2c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
## Changed
- [Breaking] `type` attribute is now `ty`
- Upgrade to syn2
- Corrected a typo in DiskCacheError (de)serialization variants
- Signature or `DiskCache::remove_expired_entries`: this now returns `Result<(), DiskCacheError>` instead of `()`, returning an `Err(sled::Error)` on removing and flushing from the connection.
## Removed

Expand Down
4 changes: 2 additions & 2 deletions src/stores/disk.rs
Original file line number Diff line number Diff line change
Expand Up @@ -207,9 +207,9 @@ pub enum DiskCacheError {
#[error("Storage error")]
StorageError(#[from] sled::Error),
#[error("Error deserializing cached value")]
CacheDeserializtionError(#[from] rmp_serde::decode::Error),
CacheDeserializationError(#[from] rmp_serde::decode::Error),
#[error("Error serializing cached value")]
CacheSerializtionError(#[from] rmp_serde::encode::Error),
CacheSerializationError(#[from] rmp_serde::encode::Error),
}

#[derive(serde::Serialize, serde::Deserialize)]
Expand Down

0 comments on commit a3ccc2c

Please sign in to comment.