Skip to content

Commit

Permalink
remove unnecessary clone
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisDavison committed Aug 27, 2023
1 parent 96b3897 commit 8b11f83
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion 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/utility.rs
Expand Up @@ -40,7 +40,7 @@ pub fn get_tags_for_file(filename: &str) -> Set<Tag> {
let mut contents = String::new();
file.read_to_string(&mut contents)
.unwrap_or_else(|_| panic!("Couldn't read contents of file: `{:?}`", filename));
get_tags_from_string(&contents.clone())
get_tags_from_string(&contents)
}

fn is_valid_tag_char(ch: char) -> bool {
Expand Down

0 comments on commit 8b11f83

Please sign in to comment.