Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
leovalais committed Jul 15, 2024
1 parent 7e6c0ca commit a02ca01
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion editoast/src/views/openapi.rs
Original file line number Diff line number Diff line change
Expand Up @@ -467,7 +467,7 @@ impl OpenApiRoot {
fn insert_routes(openapi: &mut utoipa::openapi::OpenApi) {
let paths = crate::views::openapi_paths();
for (mut path, path_item) in paths.into_flat_path_list() {
if path.ends_with("/") {
if path.ends_with('/') {
path = path.trim_end_matches('/').to_string();
}
debug!("processing {path}");
Expand Down

0 comments on commit a02ca01

Please sign in to comment.