Skip to content

Commit a7eb028

Browse files
committed
Fix clippy warnings
1 parent 6fbc627 commit a7eb028

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

autorust/codegen/src/codegen.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ impl<'a> CodeGen<'a> {
101101
|| self
102102
.spec
103103
.operations()
104-
.map_or(false, |f| f.iter().any(|op| op.has_xml()))
104+
.is_ok_and(|f| f.iter().any(|op| op.has_xml()))
105105
}
106106
}
107107

autorust/codegen/src/gen.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ pub fn gen_crate(
6565
let input_files: Result<Vec<_>> = tag
6666
.input_files()
6767
.iter()
68-
.map(|input_file| io::join(spec.readme(), input_file).map_err(Error::from))
68+
.map(|input_file| io::join(spec.readme(), input_file))
6969
.collect();
7070
let input_files = input_files.with_context(ErrorKind::CodeGen, || {
7171
format!("collecting input files for tag {name}")

0 commit comments

Comments
 (0)