Skip to content

Commit

Permalink
fix complaint about inefficient clone method
Browse files Browse the repository at this point in the history
  • Loading branch information
janstarke committed May 17, 2024
1 parent d36d153 commit 0703f9d
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 41 deletions.
80 changes: 40 additions & 40 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/common/bodyfile/bodyfile3.rs
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ impl Bodyfile3Line {
[with_mode] [mode_as_string];
)]
pub fn method_name(mut self, attribute_name: &str) -> Self {
self.attribute_name = attribute_name.to_owned();
attribute_name.clone_into(&mut self.attribute_name);
self
}

Expand Down

0 comments on commit 0703f9d

Please sign in to comment.