Skip to content

Commit

Permalink
Update redb
Browse files Browse the repository at this point in the history
  • Loading branch information
terror committed Feb 16, 2022
1 parent bf43cea commit 0d1ae6a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
10 changes: 5 additions & 5 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/index.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ impl Index {

let database = match result {
Ok(database) => database,
Err(redb::Error::DoesNotExist(_)) => unsafe {
Err(redb::Error::Io(error)) if error.kind() == io::ErrorKind::NotFound => unsafe {
Database::create("index.redb", index_size.unwrap_or(1 << 20))?
},
Err(error) => return Err(error.into()),
Expand Down
1 change: 1 addition & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ use {
path::{Path, PathBuf},
process,
str::FromStr,
io
},
structopt::StructOpt,
};
Expand Down

0 comments on commit 0d1ae6a

Please sign in to comment.