summaryrefslogtreecommitdiff
path: root/rust-src/src/cmd_list.rs
diff options
context:
space:
mode:
authorTruongSinh Tran-Nguyen <i@truongsinh.pro>2023-04-26 12:50:16 -0700
committerKent Overstreet <kent.overstreet@linux.dev>2023-04-26 17:46:23 -0400
commit47ec3ed6edb90c1117d0c79c382f03a3ed87c5ca (patch)
tree2aae100d0d553104b8276e8785865a7fc7b84991 /rust-src/src/cmd_list.rs
parent4f6b28f54f09ee4498466d39cf550faeedd5614a (diff)
chore: logger for idiomatic style and expanded logging levels
Improve the Rust logger by adhering to idiomatic Rust conventions and incorporating additional logging levels: warn, debug, and trace. Signed-off-by: TruongSinh Tran-Nguyen <i@truongsinh.pro>
Diffstat (limited to 'rust-src/src/cmd_list.rs')
-rw-r--r--rust-src/src/cmd_list.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/rust-src/src/cmd_list.rs b/rust-src/src/cmd_list.rs
index f04efa2c..2dc8d719 100644
--- a/rust-src/src/cmd_list.rs
+++ b/rust-src/src/cmd_list.rs
@@ -1,5 +1,5 @@
use atty::Stream;
-use bch_bindgen::error;
+use log::{error};
use bch_bindgen::bcachefs;
use bch_bindgen::opt_set;
use bch_bindgen::fs::Fs;
@@ -9,7 +9,6 @@ use bch_bindgen::btree::BtreeIter;
use bch_bindgen::btree::BtreeNodeIter;
use bch_bindgen::btree::BtreeIterFlags;
use clap::Parser;
-use colored::Colorize;
use std::ffi::{CStr, OsStr, c_int, c_char};
use std::os::unix::ffi::OsStrExt;