Skip to content

Commit

Permalink
janitor: Make LSP clippy clean
Browse files Browse the repository at this point in the history
  • Loading branch information
hunger committed Jan 16, 2023
1 parent 28e3f47 commit 3afa8be
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 10 deletions.
6 changes: 2 additions & 4 deletions tools/lsp/properties.rs
Expand Up @@ -468,10 +468,8 @@ fn validate_property_expression_type(
{
diag.push_error_with_span(
format!(
"return type mismatch in \"{}\" (was: {}, expected: {})",
property.name,
new_expression_type.to_string(),
property.type_name
"return type mismatch in \"{}\" (was: {new_expression_type}, expected: {})",
property.name, property.type_name
),
i_slint_compiler::diagnostics::SourceLocation {
source_file: None,
Expand Down
8 changes: 2 additions & 6 deletions tools/lsp/server_loop.rs
Expand Up @@ -683,9 +683,7 @@ pub async fn set_binding_command(
);
}
} else {
return Err(
format!("Document with uri {} not found in cache", uri.to_string()).into()
);
return Err(format!("Document with uri {uri} not found in cache").into());
}
}

Expand Down Expand Up @@ -776,9 +774,7 @@ pub async fn remove_binding_command(
);
}
} else {
return Err(
format!("Document with uri {} not found in cache", uri.to_string()).into()
);
return Err(format!("Document with uri {uri} not found in cache").into());
}
}

Expand Down

0 comments on commit 3afa8be

Please sign in to comment.