Skip to content

Commit

Permalink
parser: Deal with a new clippy warning.
Browse files Browse the repository at this point in the history
  • Loading branch information
emilio committed Jan 26, 2021
1 parent 7507458 commit d0d287f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bindgen/parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -653,7 +653,7 @@ impl Parse {
}

let loggable_item_name = || {
let mut items = vec![];
let mut items = Vec::with_capacity(3);
items.push(crate_name.to_owned());
if let Some(ref self_type) = self_type {
items.push(self_type.to_string());
Expand Down

0 comments on commit d0d287f

Please sign in to comment.