Skip to content

Commit

Permalink
Removed .clone() for comment
Browse files Browse the repository at this point in the history
  • Loading branch information
Kiwifuit committed Dec 19, 2022
1 parent 9f2dbeb commit 78b4d53
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/error/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ pub(crate) fn render_token(token: &Token<'_>) -> String {
unit,
} => format!("{}{}", render_int(*signed, *num), unit),
Token::WhiteSpace(_) => String::from(" "),
Token::Comment(comment) => format!("/* {} */", comment.clone()),
Token::Comment(comment) => format!("/* {} */", comment),
Token::Function(name) => format!("{}()", name.clone()),
Token::BadString(string) => format!("<Bad String {:?}>", string.clone()),
Token::BadUrl(url) => format!("<Bad URL {:?}>", url.clone()),
Expand Down

0 comments on commit 78b4d53

Please sign in to comment.