Skip to content

Commit

Permalink
Merge pull request #1519 from sepiropht/clippy-fixes
Browse files Browse the repository at this point in the history
some clippy fxing
  • Loading branch information
matthewkmayer committed Oct 4, 2019
2 parents 8ebae02 + b060a9b commit 9cd6d57
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion service_crategen/src/botocore.rs
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ impl<'a> Operation {
&self
.input
.as_ref()
.expect(&format!("Operation input undefined for {}", self.name))
.unwrap_or_else(|| panic!("Operation input undefined for {}", self.name))
.shape
}

Expand Down
2 changes: 1 addition & 1 deletion service_crategen/src/commands/generate/codegen/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,7 @@ fn find_shapes_to_generate(service: &Service<'_>) -> BTreeSet<String> {
}
}
}
return shapes_to_generate;
shapes_to_generate
}

fn generate_types<P>(
Expand Down
1 change: 0 additions & 1 deletion service_crategen/src/commands/generate/codegen/rest_xml.rs
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,6 @@ fn generate_documentation(operation: &Operation, service: &Service<'_>) -> Strin
if operation.name == "ChangeResourceRecordSets" {
docs = format!("/// For TXT records, see <a href=\"./util/fn.quote_txt_record.html\">util::quote_txt_record</a>\n{}", docs);
}
()
}
_ => (),
}
Expand Down

0 comments on commit 9cd6d57

Please sign in to comment.