Skip to content

Commit

Permalink
bump libc version
Browse files Browse the repository at this point in the history
  • Loading branch information
rim99 committed Aug 24, 2024
1 parent ee43cae commit 03847be
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
3 changes: 1 addition & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,7 @@ default = ["leveldb-sys/snappy"]
name = "leveldb"

[dependencies]

libc = "0.2.4"
libc = "0.2.158"

[dependencies.leveldb-sys]
version = "2.0.0"
Expand Down
2 changes: 1 addition & 1 deletion src/database/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ impl std::error::Error for Error {
fn description(&self) -> &str {
&self.message
}
fn cause(&self) -> Option<&std::error::Error> {
fn cause(&self) -> Option<&dyn std::error::Error> {
None
}
}
1 change: 1 addition & 0 deletions src/database/iterator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ impl<'a, K: Key + 'a> Iterable<'a, K> for Database<K> {
}

#[allow(missing_docs)]
#[allow(unused_attributes)]
pub trait LevelDBIterator<'a, K: Key> {
type RevIter: LevelDBIterator<'a, K>;

Expand Down
2 changes: 1 addition & 1 deletion tests/concurrent_access.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ fn access_from_threads() {
let database = open_database(tmp.path(), true);
let shared = Arc::new(database);

(0..10).map(|i| {
let _ = (0..10).map(|i| {
let local_db = shared.clone();

thread::spawn(move || {
Expand Down
4 changes: 2 additions & 2 deletions tests/iterator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ fn test_key_iterator() {
db_put_simple(database, 1, &[1]);
db_put_simple(database, 2, &[2]);

let iterable: &mut Iterable<i32> = database;
let iterable: &mut dyn Iterable<i32> = database;

let read_opts = ReadOptions::new();
let mut iter = iterable.keys_iter(read_opts);
Expand All @@ -96,7 +96,7 @@ fn test_value_iterator() {
db_put_simple(database, 1, &[1]);
db_put_simple(database, 2, &[2]);

let iterable: &mut Iterable<i32> = database;
let iterable: &mut dyn Iterable<i32> = database;

let read_opts = ReadOptions::new();
let mut iter = iterable.value_iter(read_opts);
Expand Down

0 comments on commit 03847be

Please sign in to comment.