From beab6f34ce009bdb2e5f1d3694ebb7749944c033 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Mon, 30 Mar 2020 18:51:30 +0200 Subject: [PATCH] Fix typo --- crates/stdx/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)*); } };