Skip to content

Commit

Permalink
fix clone on double reference
Browse files Browse the repository at this point in the history
  • Loading branch information
bvaisvil committed Jun 11, 2020
1 parent d2a7904 commit 249311a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/metrics.rs
Expand Up @@ -424,7 +424,7 @@ pub struct ZDisk{
impl ZDisk{
fn from_disk(d: &Disk) -> ZDisk{
ZDisk{
mount_point: d.get_mount_point().clone().to_path_buf(),
mount_point: d.get_mount_point().to_path_buf(),
available_bytes: d.get_available_space(),
size_bytes: d.get_total_space()
}
Expand Down

0 comments on commit 249311a

Please sign in to comment.