Skip to content

Commit

Permalink
resolved clippy errors
Browse files Browse the repository at this point in the history
Signed-off-by: karan <[email protected]>
  • Loading branch information
KMJ-007 committed Dec 7, 2024
1 parent afcade3 commit 1b9ecc1
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
3 changes: 0 additions & 3 deletions src/reader.rs
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
use clap::ArgMatches;
use nix::sys::statvfs::statvfs;
use std::cmp;
use std::fs::File;
use std::io::BufRead;
use std::io::BufReader;
use std::process;
use std::process::Command;

Expand Down
2 changes: 1 addition & 1 deletion src/stats.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ pub struct Stats {

impl Stats {
pub fn new(fs: &str, mount: &str, statvfs: Statvfs, args: &ArgMatches) -> Stats {
let size_disk = u64::from(statvfs.blocks()) * u64::from(statvfs.fragment_size());
let size_disk = u64::from(statvfs.blocks()) * statvfs.fragment_size();
let fragment_size = statvfs.fragment_size();
let blocks = statvfs.blocks();
let available_disk = u64::from(statvfs.blocks_available()) * statvfs.fragment_size();
Expand Down

0 comments on commit 1b9ecc1

Please sign in to comment.