Skip to content

Commit f4425c6

Browse files
committed
use Into::into
1 parent cf65891 commit f4425c6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

nexus/db-model/src/disk.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ impl Disk {
110110
}
111111

112112
pub fn slot(&self) -> Option<u8> {
113-
self.slot.map(|x| x.into())
113+
self.slot.map(Into::into)
114114
}
115115
}
116116

nexus/src/app/disk.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ impl super::Nexus {
236236
.db_datastore
237237
.disk_list(opctx, &authz_project, pagparams)
238238
.await?;
239-
Ok(disks.into_iter().map(|disk| disk.into()).collect())
239+
Ok(disks.into_iter().map(Into::into).collect())
240240
}
241241

242242
pub(crate) async fn notify_disk_updated(

0 commit comments

Comments
 (0)