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