diff options
Diffstat (limited to 'crates/stdx/src')
-rw-r--r-- | crates/stdx/src/lib.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/stdx/src/lib.rs b/crates/stdx/src/lib.rs index 8492c17af..d2efa2236 100644 --- a/crates/stdx/src/lib.rs +++ b/crates/stdx/src/lib.rs | |||
@@ -5,7 +5,7 @@ use std::{cell::Cell, fmt}; | |||
5 | /// Appends formatted string to a `String`. | 5 | /// Appends formatted string to a `String`. |
6 | #[macro_export] | 6 | #[macro_export] |
7 | macro_rules! format_to { | 7 | macro_rules! format_to { |
8 | (&buf:expr) => (); | 8 | ($buf:expr) => (); |
9 | ($buf:expr, $lit:literal $($arg:tt)*) => { | 9 | ($buf:expr, $lit:literal $($arg:tt)*) => { |
10 | { use ::std::fmt::Write as _; let _ = ::std::write!($buf, $lit $($arg)*); } | 10 | { use ::std::fmt::Write as _; let _ = ::std::write!($buf, $lit $($arg)*); } |
11 | }; | 11 | }; |