This commit is contained in:
Aleksey Kladov 2020-03-30 18:51:30 +02:00
parent 671926ac93
commit beab6f34ce

View File

@ -5,7 +5,7 @@
/// Appends formatted string to a `String`. /// Appends formatted string to a `String`.
#[macro_export] #[macro_export]
macro_rules! format_to { macro_rules! format_to {
(&buf:expr) => (); ($buf:expr) => ();
($buf:expr, $lit:literal $($arg:tt)*) => { ($buf:expr, $lit:literal $($arg:tt)*) => {
{ use ::std::fmt::Write as _; let _ = ::std::write!($buf, $lit $($arg)*); } { use ::std::fmt::Write as _; let _ = ::std::write!($buf, $lit $($arg)*); }
}; };