diff options
author | Kent Overstreet <kent.overstreet@linux.dev> | 2023-03-04 07:35:29 -0500 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-03-04 19:14:50 -0500 |
commit | 9fc4b5d675cd6dc0b2503abe95b1c761d8d05abe (patch) | |
tree | b547922481166d5279170a5bce58e58c03dcbbfc /rust-src/bch_bindgen/src/lib.rs | |
parent | 1ee7dc7a55273d34358a0ee525a9e823c999ffe6 (diff) |
rust: Fix ptr casting in Fs::open()
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'rust-src/bch_bindgen/src/lib.rs')
-rw-r--r-- | rust-src/bch_bindgen/src/lib.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rust-src/bch_bindgen/src/lib.rs b/rust-src/bch_bindgen/src/lib.rs index 3bc21a18..d2b58511 100644 --- a/rust-src/bch_bindgen/src/lib.rs +++ b/rust-src/bch_bindgen/src/lib.rs @@ -91,7 +91,7 @@ impl FromStr for c::btree_id { fn from_str(s: &str) -> Result<Self, Self::Err> { let s = CString::new(s).unwrap(); - let p: *const i8 = s.as_ptr(); + let p = s.as_ptr(); let v = unsafe {c::match_string(c::bch2_btree_ids[..].as_ptr(), (-(1 as isize)) as usize, p)}; if v >= 0 { |