Skip to content

Commit

Permalink
remove unused vars
Browse files Browse the repository at this point in the history
  • Loading branch information
archeoss committed Jan 29, 2024
1 parent a3a7393 commit 65a3c1a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions bob/src/api/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -338,8 +338,6 @@ async fn get_space_info<A: Authenticator>(
).await.into_iter().collect();
let adc_space = adc.disk_used().await;

let disk_path: HashMap<_, _> = dcs.iter().map(|dc| (dc.disk().name().to_string(), dc.disk().path().to_string())).collect();

let disk_space_by_disk = disk_metrics.into_iter().map(|(mount_point, disk)| (
mount_point.to_string_lossy().to_string(),
Space {
Expand Down
2 changes: 1 addition & 1 deletion bob/src/hw_metrics_collector.rs
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ impl HWMetricsCollector {
fn space(disks: &HashMap<PathBuf, DiskName>) -> HashMap<PathBuf, DiskSpaceMetrics> {
let mut res = HashMap::new();
let mut fs_ids = HashSet::new();
for (mount_point, disk_name) in disks {
for (mount_point, _) in disks {
let cm_p = Self::to_cpath(mount_point.as_path());
let stat = Self::statvfs_wrap(&cm_p);
if let Some(stat) = stat {
Expand Down

0 comments on commit 65a3c1a

Please sign in to comment.