diff options
author | Jeremy Kolb <[email protected]> | 2019-07-05 17:02:32 +0100 |
---|---|---|
committer | Jeremy Kolb <[email protected]> | 2019-07-05 17:02:32 +0100 |
commit | 001e34e6e31503195d176a349bc9476681c79e7f (patch) | |
tree | facf2c398e8dd428225a84455437abf81a478ee0 /crates/ra_hir/src/ids.rs | |
parent | ec6f71576ace170fd306a68f77e5c5e9646d15be (diff) |
Clippy trivially_copy_pass_by_ref
Diffstat (limited to 'crates/ra_hir/src/ids.rs')
-rw-r--r-- | crates/ra_hir/src/ids.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/ra_hir/src/ids.rs b/crates/ra_hir/src/ids.rs index bd1e2f2e6..5212b78ac 100644 --- a/crates/ra_hir/src/ids.rs +++ b/crates/ra_hir/src/ids.rs | |||
@@ -359,8 +359,8 @@ impl AstItemDef<ast::TypeAliasDef> for TypeAliasId { | |||
359 | } | 359 | } |
360 | 360 | ||
361 | impl MacroCallId { | 361 | impl MacroCallId { |
362 | pub fn debug_dump(&self, db: &impl AstDatabase) -> String { | 362 | pub fn debug_dump(self, db: &impl AstDatabase) -> String { |
363 | let loc = self.clone().loc(db); | 363 | let loc = self.loc(db); |
364 | let node = loc.ast_id.to_node(db); | 364 | let node = loc.ast_id.to_node(db); |
365 | let syntax_str = node.syntax().text().chunks().collect::<Vec<_>>().join(" "); | 365 | let syntax_str = node.syntax().text().chunks().collect::<Vec<_>>().join(" "); |
366 | 366 | ||