diff options
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 | ||