diff --git a/crates/stdx/src/lib.rs b/crates/stdx/src/lib.rs index 8492c17af2..d2efa22363 100644 --- a/crates/stdx/src/lib.rs +++ b/crates/stdx/src/lib.rs @@ -5,7 +5,7 @@ use std::{cell::Cell, fmt}; /// Appends formatted string to a `String`. #[macro_export] macro_rules! format_to { - (&buf:expr) => (); + ($buf:expr) => (); ($buf:expr, $lit:literal $($arg:tt)*) => { { use ::std::fmt::Write as _; let _ = ::std::write!($buf, $lit $($arg)*); } };