Skip to content

Commit

Permalink
Merge pull request #40 from StaffEngineer/bump_redb
Browse files Browse the repository at this point in the history
bump redb
  • Loading branch information
johanhelsing authored Jun 29, 2023
2 parents 45794a4 + fb50314 commit 0e10c85
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ rocksdb = { version = "0.20", optional = true }
sled = { version = "0.34", optional = true }
rmp-serde = "1.1"
directories = "5.0"
redb = { version = "1.0.0", optional = true }
redb = { version = "1.0.1", optional = true }

[dev-dependencies]
bevy = { version = "0.10", default-features = false }
Expand Down
28 changes: 14 additions & 14 deletions src/redb_store.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,14 @@ pub use ReDbStore as InnerStore;
#[derive(thiserror::Error, Debug)]
pub enum GetError {
/// An internal storage error from the `redb` crate
#[error("RedDbStorageError error")]
RedDbStorageError(#[from] redb::StorageError),
#[error("ReDbStorageError error")]
ReDbStorageError(#[from] redb::StorageError),
/// An internal transaction error from the `redb` crate
#[error("RedDbTransactionError error")]
RedDbTransactionError(#[from] redb::TransactionError),
#[error("ReDbTransactionError error")]
ReDbTransactionError(#[from] redb::TransactionError),
/// An internal table error from the `redb` crate
#[error("RedDbTableError error")]
RedDbTableError(#[from] redb::TableError),
#[error("ReDbTableError error")]
ReDbTableError(#[from] redb::TableError),
/// The value for the given key was not found
#[error("No value found for the given key")]
NotFound,
Expand All @@ -37,17 +37,17 @@ pub enum GetError {
#[derive(thiserror::Error, Debug)]
pub enum SetError {
/// An internal commit error from the `redb` crate
#[error("RedDbCommitError error")]
RedDbCommitError(#[from] redb::CommitError),
#[error("ReDbCommitError error")]
ReDbCommitError(#[from] redb::CommitError),
/// An internal storage error from the `redb` crate
#[error("RedDbStorageError error")]
RedDbStorageError(#[from] redb::StorageError),
#[error("ReDbStorageError error")]
ReDbStorageError(#[from] redb::StorageError),
/// An internal transaction error from the `redb` crate
#[error("RedDbTransactionError error")]
RedDbTransactionError(#[from] redb::TransactionError),
#[error("ReDbTransactionError error")]
ReDbTransactionError(#[from] redb::TransactionError),
/// An internal table error from the `redb` crate
#[error("RedDbTableError error")]
RedDbTableError(#[from] redb::TableError),
#[error("ReDbTableError error")]
ReDbTableError(#[from] redb::TableError),
/// Error when serializing the value
#[error("MessagePack serialization error")]
MessagePack(#[from] rmp_serde::encode::Error),
Expand Down

0 comments on commit 0e10c85

Please sign in to comment.