Skip to content

Commit e82716b

Browse files
committed
Apply clippy fixes
1 parent de365a2 commit e82716b

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

compiler-core/checking/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ where
9292
.map(|signature| convert::signature_type_to_core(state, context, signature));
9393

9494
if let Some(DataIr { variables }) = data {
95-
let inferred_type = create_type_declaration_kind(state, context, &variables);
95+
let inferred_type = create_type_declaration_kind(state, context, variables);
9696
for constructor_id in context.indexed.pairs.data_constructors(item_id) {
9797
let Some(TermItemIr::Constructor { arguments }) =
9898
context.lowered.info.get_term_item(constructor_id)

compiler-lsp/analyzer/src/common.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ fn pointers_range(
6363
pointers: impl Iterator<Item = SyntaxNodePtr>,
6464
) -> Result<Range, AnalyzerError> {
6565
pointers
66-
.filter_map(|ptr| locate::syntax_range(&content, &root, &ptr))
66+
.filter_map(|ptr| locate::syntax_range(content, &root, &ptr))
6767
.reduce(|start, end| Range { start: start.start, end: end.end })
6868
.ok_or(AnalyzerError::NonFatal)
6969
}

compiler-lsp/analyzer/src/symbols.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ pub fn workspace(
2121

2222
if let Some(exact_symbols) = cache.get(&query) {
2323
tracing::debug!("Found exact match for '{query}'");
24-
let flat = Vec::clone(&*exact_symbols);
24+
let flat = Vec::clone(exact_symbols);
2525
return Ok(Some(WorkspaceSymbolResponse::Flat(flat)));
2626
}
2727

0 commit comments

Comments
 (0)