diff options
author | Clemens Wasser <[email protected]> | 2021-06-07 12:59:01 +0100 |
---|---|---|
committer | Clemens Wasser <[email protected]> | 2021-06-21 15:40:21 +0100 |
commit | 47747cd4120e260a144242aadd7732e11d133fe4 (patch) | |
tree | ba767d7da808c050e313446ac4cb90d810d0f4de /crates/hir_def/src/item_tree/pretty.rs | |
parent | 4402f2b280f58896ed0696f4243d88a58fd970ca (diff) |
Apply some clippy suggestions
Diffstat (limited to 'crates/hir_def/src/item_tree/pretty.rs')
-rw-r--r-- | crates/hir_def/src/item_tree/pretty.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/crates/hir_def/src/item_tree/pretty.rs b/crates/hir_def/src/item_tree/pretty.rs index e63bc8232..8b12e5a67 100644 --- a/crates/hir_def/src/item_tree/pretty.rs +++ b/crates/hir_def/src/item_tree/pretty.rs | |||
@@ -30,16 +30,16 @@ pub(super) fn print_item_tree(tree: &ItemTree) -> String { | |||
30 | 30 | ||
31 | macro_rules! w { | 31 | macro_rules! w { |
32 | ($dst:expr, $($arg:tt)*) => { | 32 | ($dst:expr, $($arg:tt)*) => { |
33 | drop(write!($dst, $($arg)*)) | 33 | { let _ = write!($dst, $($arg)*); } |
34 | }; | 34 | }; |
35 | } | 35 | } |
36 | 36 | ||
37 | macro_rules! wln { | 37 | macro_rules! wln { |
38 | ($dst:expr) => { | 38 | ($dst:expr) => { |
39 | drop(writeln!($dst)) | 39 | { let _ = writeln!($dst); } |
40 | }; | 40 | }; |
41 | ($dst:expr, $($arg:tt)*) => { | 41 | ($dst:expr, $($arg:tt)*) => { |
42 | drop(writeln!($dst, $($arg)*)) | 42 | { let _ = writeln!($dst, $($arg)*); } |
43 | }; | 43 | }; |
44 | } | 44 | } |
45 | 45 | ||