Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion autorust/codegen/src/codegen.rs
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ impl<'a> CodeGen<'a> {
|| self
.spec
.operations()
.map_or(false, |f| f.iter().any(|op| op.has_xml()))
.is_ok_and(|f| f.iter().any(|op| op.has_xml()))
}
}

Expand Down
4 changes: 2 additions & 2 deletions autorust/codegen/src/gen.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use crate::{
autorust_toml, cargo_toml, io, lib_rs,
readme_md::{self, ReadmeMd},
run, CrateConfig, Error, ErrorKind, Result, ResultExt, RunConfig, SpecReadme,
run, CrateConfig, ErrorKind, Result, ResultExt, RunConfig, SpecReadme,
};
use std::{collections::HashMap, fs};

Expand Down Expand Up @@ -65,7 +65,7 @@ pub fn gen_crate(
let input_files: Result<Vec<_>> = tag
.input_files()
.iter()
.map(|input_file| io::join(spec.readme(), input_file).map_err(Error::from))
.map(|input_file| io::join(spec.readme(), input_file))
.collect();
let input_files = input_files.with_context(ErrorKind::CodeGen, || {
format!("collecting input files for tag {name}")
Expand Down
2 changes: 1 addition & 1 deletion autorust/openapi/src/status_code.rs
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ impl<'de> Deserialize<'de> for StatusCode {
if let Ok(number) = value.parse::<i64>() {
self.visit_i64(number)
} else {
return Err(E::invalid_value(Unexpected::Str(value), &"not i64"));
Err(E::invalid_value(Unexpected::Str(value), &"not i64"))
}
}
}
Expand Down
Loading