Skip to content

Commit

Permalink
Fix new clippy lints in Rust stable 1.54, and a typo in a CI job name.
Browse files Browse the repository at this point in the history
  • Loading branch information
Arnavion committed Jul 30, 2021
1 parent 1418615 commit 25fa9f0
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ jobs:
OP: "${{ matrix.op }}"


k8s-openapi-coddgen-common:
k8s-openapi-codegen-common:
runs-on: 'ubuntu-20.04'

strategy:
Expand Down
12 changes: 6 additions & 6 deletions k8s-openapi-codegen-common/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ impl<T> RunState for &'_ mut T where T: RunState {
}

fn finish(&mut self, writer: Self::Writer) {
(*self).finish(writer)
(*self).finish(writer);
}
}

Expand Down Expand Up @@ -271,7 +271,7 @@ pub fn run(
}
}

let field_name = get_rust_ident(&name);
let field_name = get_rust_ident(name);

let mut field_type_name = String::new();

Expand Down Expand Up @@ -1260,7 +1260,7 @@ fn evaluate_trait_bound(
)
}
else {
f(&kind, required)
f(kind, required)
};
trait_bound
},
Expand Down Expand Up @@ -1299,7 +1299,7 @@ fn evaluate_trait_bound(
return Ok(false);
}

f(&kind, required)
f(kind, required)
},

swagger20::SchemaKind::Ty(swagger20::Type::WatchEvent(raw_extension_ref_path)) => {
Expand All @@ -1317,7 +1317,7 @@ fn evaluate_trait_bound(
return Ok(false);
}

f(&kind, required)
f(kind, required)
},

kind => f(kind, required),
Expand Down Expand Up @@ -1365,7 +1365,7 @@ fn get_fully_qualified_type_name(
result.push_str(&*get_rust_ident(namespace_part));
result.push_str("::");
}
result.push_str(&path_parts[path_parts.len() - 1]);
result.push_str(path_parts[path_parts.len() - 1]);
result
}
else {
Expand Down
1 change: 1 addition & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
clippy::large_enum_variant,
clippy::match_single_binding,
clippy::missing_errors_doc,
clippy::module_name_repetitions,
clippy::must_use_candidate,
clippy::single_match_else,
clippy::too_many_lines,
Expand Down

0 comments on commit 25fa9f0

Please sign in to comment.