Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
flying-sheep committed Dec 14, 2024
1 parent 75b96de commit 7d3aa6f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pyo3-stub-gen-derive/src/gen_stub/pyclass.rs
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ impl ToTokens for PyClassInfo {
} = self;
let module = quote_option(module);
let bases: Vec<_> = bases
.into_iter()
.iter()
.map(|(mod_, name)| {
let mod_ = quote_option(mod_);
quote! { (#mod_, #name) }
Expand Down
2 changes: 1 addition & 1 deletion pyo3-stub-gen/src/generate/class.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ impl fmt::Display for ClassDef {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
let bases = self
.bases
.into_iter()
.iter()
.map(|(m, n)| {
m.map(|m| format!("{m}.{n}"))
.unwrap_or_else(|| n.to_string())
Expand Down

0 comments on commit 7d3aa6f

Please sign in to comment.