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 6fbc627 commit a7eb028Copy full SHA for a7eb028
2 files changed
autorust/codegen/src/codegen.rs
@@ -101,7 +101,7 @@ impl<'a> CodeGen<'a> {
101
|| self
102
.spec
103
.operations()
104
- .map_or(false, |f| f.iter().any(|op| op.has_xml()))
+ .is_ok_and(|f| f.iter().any(|op| op.has_xml()))
105
}
106
107
autorust/codegen/src/gen.rs
@@ -65,7 +65,7 @@ pub fn gen_crate(
65
let input_files: Result<Vec<_>> = tag
66
.input_files()
67
.iter()
68
- .map(|input_file| io::join(spec.readme(), input_file).map_err(Error::from))
+ .map(|input_file| io::join(spec.readme(), input_file))
69
.collect();
70
let input_files = input_files.with_context(ErrorKind::CodeGen, || {
71
format!("collecting input files for tag {name}")
0 commit comments