diff options
author | Maan2003 <[email protected]> | 2021-06-13 04:55:55 +0100 |
---|---|---|
committer | Maan2003 <[email protected]> | 2021-06-13 04:55:55 +0100 |
commit | 6cc6dee9e96d55dbbd8593523551a9981a691147 (patch) | |
tree | c9a790918f586acd877908a5b34e6b073d551b49 /crates/hir_def/src/test_db.rs | |
parent | c9b4ac5be4daaabc062ab1ee663eba8594750003 (diff) |
clippy::useless_conversion
Diffstat (limited to 'crates/hir_def/src/test_db.rs')
-rw-r--r-- | crates/hir_def/src/test_db.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/hir_def/src/test_db.rs b/crates/hir_def/src/test_db.rs index b20b066e2..a16203fdb 100644 --- a/crates/hir_def/src/test_db.rs +++ b/crates/hir_def/src/test_db.rs | |||
@@ -325,7 +325,7 @@ impl TestDB { | |||
325 | for diag in source_map.diagnostics() { | 325 | for diag in source_map.diagnostics() { |
326 | let (ptr, message): (InFile<SyntaxNodePtr>, &str) = match diag { | 326 | let (ptr, message): (InFile<SyntaxNodePtr>, &str) = match diag { |
327 | BodyDiagnostic::InactiveCode { node, .. } => { | 327 | BodyDiagnostic::InactiveCode { node, .. } => { |
328 | (node.clone().map(|it| it.into()), "InactiveCode") | 328 | (node.clone().map(|it| it), "InactiveCode") |
329 | } | 329 | } |
330 | BodyDiagnostic::MacroError { node, message } => { | 330 | BodyDiagnostic::MacroError { node, message } => { |
331 | (node.clone().map(|it| it.into()), message.as_str()) | 331 | (node.clone().map(|it| it.into()), message.as_str()) |