Skip to content

Commit

Permalink
cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
Rjected committed May 17, 2023
1 parent 6ab6d36 commit 746f2d2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
5 changes: 4 additions & 1 deletion crates/storage/libmdbx-rs/mdbx-sys/build.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
use bindgen::{Formatter, callbacks::{IntKind, ParseCallbacks}};
use bindgen::{
callbacks::{IntKind, ParseCallbacks},
Formatter,
};
use std::{env, path::PathBuf};

#[derive(Debug)]
Expand Down
5 changes: 1 addition & 4 deletions crates/storage/libmdbx-rs/src/codec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,7 @@ impl<'tx> TableObject<'tx> for Cow<'tx, [u8]> {
#[cfg(not(feature = "return-borrowed"))]
{
let is_dirty = (!K::ONLY_CLEAN) &&
crate::error::mdbx_result(ffi::mdbx_is_dirty(
_txn,
data_val.iov_base,
))?;
crate::error::mdbx_result(ffi::mdbx_is_dirty(_txn, data_val.iov_base))?;

Ok(if is_dirty { Cow::Owned(s.to_vec()) } else { Cow::Borrowed(s) })
}
Expand Down

0 comments on commit 746f2d2

Please sign in to comment.