Skip to content

Commit f0705f5

Browse files
authored
Fix new warnings (as errors) (#1633)
1 parent 9f737e1 commit f0705f5

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

sdk/data_cosmos/tests/query_operations.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ use serde::Deserialize;
44

55
mod setup_mock;
66

7+
#[allow(dead_code)]
78
#[tokio::test]
89
async fn query_operations() -> azure_core::Result<()> {
910
#[derive(Deserialize, Debug)]

services/autorust/codegen/src/codegen.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -434,7 +434,7 @@ fn idents_to_type_path(idents: Vec<Ident>) -> TypePath {
434434
}
435435

436436
fn optional_idents_to_type_path(idents: Vec<Option<&Ident>>) -> TypePath {
437-
let idents: Vec<Ident> = idents.into_iter().filter_map(|id| id.map(Ident::clone)).collect();
437+
let idents: Vec<Ident> = idents.into_iter().filter_map(|id| id.cloned()).collect();
438438
idents_to_type_path(idents)
439439
}
440440

0 commit comments

Comments
 (0)