Skip to content

Commit 8f4fd7f

Browse files
committed
Clippy fixes
1 parent afecd9c commit 8f4fd7f

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

ogcapi-drivers/src/s3/collection.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,9 @@ impl CollectionTransactions for S3 {
9393
}
9494

9595
let mut collections = Collections::new(collections);
96-
collections.number_matched = collections.number_matched.to_owned();
96+
collections
97+
.number_returned
98+
.clone_into(&mut collections.number_matched);
9799

98100
Ok(collections)
99101
}

ogcapi-types/src/common/links.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ impl Linked for Links {
4646
for link in others {
4747
self.iter_mut()
4848
.find(|l| l.rel == link.rel)
49-
.map(|l| l.href = link.href.to_owned())
49+
.map(|l| link.href.clone_into(&mut l.href))
5050
.unwrap_or_else(|| self.push(link.to_owned()));
5151
}
5252
}

0 commit comments

Comments
 (0)