clippy::useless_format
This commit is contained in:
parent
d0a8a12dc6
commit
3fd8cbb404
14 changed files with 17 additions and 17 deletions
|
@ -135,7 +135,7 @@ fn symbols_with_errors(input: TokenStream) -> (TokenStream, Vec<syn::Error>) {
|
|||
let mut check_dup = |span: Span, str: &str, errors: &mut Errors| {
|
||||
if let Some(prev_span) = keys.get(str) {
|
||||
errors.error(span, format!("Symbol `{}` is duplicated", str));
|
||||
errors.error(*prev_span, format!("location of previous definition"));
|
||||
errors.error(*prev_span, "location of previous definition".to_string());
|
||||
} else {
|
||||
keys.insert(str.to_string(), span);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue