Skip to content

Commit

Permalink
Fix clippy warning
Browse files Browse the repository at this point in the history
  • Loading branch information
jackra1n committed May 15, 2024
1 parent b9abcd1 commit c718928
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ fn get_ram_usage(sys: &System) -> f64 {

fn get_disk_usage(sys: &System) -> f64 {
let disks = sys.disks();
if let Some(disk) = disks.get(0) {
if let Some(disk) = disks.first() {
let total_space = disk.total_space();
let available_space = disk.available_space();
if total_space > 0 {
Expand Down

0 comments on commit c718928

Please sign in to comment.