We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cf65891 commit f4425c6Copy full SHA for f4425c6
nexus/db-model/src/disk.rs
@@ -110,7 +110,7 @@ impl Disk {
110
}
111
112
pub fn slot(&self) -> Option<u8> {
113
- self.slot.map(|x| x.into())
+ self.slot.map(Into::into)
114
115
116
nexus/src/app/disk.rs
@@ -236,7 +236,7 @@ impl super::Nexus {
236
.db_datastore
237
.disk_list(opctx, &authz_project, pagparams)
238
.await?;
239
- Ok(disks.into_iter().map(|disk| disk.into()).collect())
+ Ok(disks.into_iter().map(Into::into).collect())
240
241
242
pub(crate) async fn notify_disk_updated(
0 commit comments