Skip to content

Commit

Permalink
rust: fix MSRV build
Browse files Browse the repository at this point in the history
- downgrade clap_completion to 4.3.x (1.65 compatible)
- dependency updates
- remove unused imports

Signed-off-by: Alexander Fougner <[email protected]>
  • Loading branch information
fougner committed Nov 23, 2023
1 parent 06611a7 commit fbad1bf
Show file tree
Hide file tree
Showing 5 changed files with 38 additions and 38 deletions.
42 changes: 21 additions & 21 deletions rust-src/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion rust-src/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ log = { version = "0.4", features = ["std"] }
chrono = { version = "0.4", default-features = false }
colored = "2"
clap = { version = "4.0.32", features = ["derive", "wrap_help"] }
clap_complete = "4.4.4"
clap_complete = "4.3.2"
anyhow = "1.0"
libc = "0.2.69"
udev = "0.7.0"
Expand Down
26 changes: 13 additions & 13 deletions rust-src/bch_bindgen/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion rust-src/src/cmd_list.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ use bch_bindgen::btree::BtreeTrans;
use bch_bindgen::btree::BtreeIter;
use bch_bindgen::btree::BtreeNodeIter;
use bch_bindgen::btree::BtreeIterFlags;
use clap::{Args, Parser};
use clap::{Parser};
use std::ffi::{c_int, c_char};
use crate::transform_c_args;

Expand Down
4 changes: 2 additions & 2 deletions rust-src/src/cmd_mount.rs
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
use atty::Stream;
use bch_bindgen::{bcachefs, bcachefs::bch_sb_handle};
use log::{info, debug, error, LevelFilter};
use clap::{Parser, Subcommand};
use clap::{Parser};
use uuid::Uuid;
use std::path::PathBuf;
use crate::{key, transform_c_args};
use crate::key::KeyLocation;
use crate::logger::SimpleLogger;
use std::ffi::{CStr, CString, OsStr, c_int, c_char, c_void};
use std::ffi::{CString, c_int, c_char, c_void};
use std::os::unix::ffi::OsStrExt;

fn mount_inner(
Expand Down

0 comments on commit fbad1bf

Please sign in to comment.