Skip to content

Commit

Permalink
remove clippy warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
stlankes committed Apr 24, 2024
1 parent cbde79b commit 55ebad3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/fs/fuse.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1225,7 +1225,7 @@ pub(crate) fn init() {
.unwrap();
trace!("fuse init answer: {:?}", rsp);

let mount_point = format!("{}", driver.lock().get_mount_point());
let mount_point = driver.lock().get_mount_point().to_string();
if mount_point == "/" {
let fuse_nid = lookup("/").unwrap();
// Opendir
Expand Down Expand Up @@ -1328,7 +1328,7 @@ pub(crate) fn init() {
}
}
} else {
let mount_point = if mount_point.starts_with("/") {
let mount_point = if mount_point.starts_with('/') {
mount_point
} else {
"/".to_owned() + &mount_point
Expand Down

0 comments on commit 55ebad3

Please sign in to comment.