]> git.sesse.net Git - bcachefs-tools-debian/blobdiff - bch_bindgen/src/lib.rs
Update upstream source from tag 'v1.6.3'
[bcachefs-tools-debian] / bch_bindgen / src / lib.rs
similarity index 98%
rename from rust-src/bch_bindgen/src/lib.rs
rename to bch_bindgen/src/lib.rs
index 4c549442ad1a6c8953a69912d581645e11f55087..ea49e60beed35b548d3d7c50b4a3fd4eaf2c0ebf 100644 (file)
@@ -3,7 +3,7 @@ pub mod btree;
 pub mod bkey;
 pub mod errcode;
 pub mod keyutils;
-pub mod rs;
+pub mod sb_io;
 pub mod fs;
 pub mod opts;
 pub use paste::paste;
@@ -164,5 +164,5 @@ pub fn printbuf_to_formatter<F>(f: &mut fmt::Formatter<'_>, func: F) -> fmt::Res
     func(&mut buf);
 
     let s = unsafe { CStr::from_ptr(buf.buf) };
-    f.write_str(s.to_str().unwrap())
+    f.write_str(&s.to_string_lossy())
 }