diff --git a/src/format.rs b/src/format.rs index d2f9861..8d4c8bb 100644 --- a/src/format.rs +++ b/src/format.rs @@ -42,7 +42,7 @@ macro_rules! format_if { ($enabled:expr, $borrowed:expr, $fmt:expr, $($args:expr),*) => { if $enabled { - ::std::borrow::Cow::Owned(format!($fmt, $($args),*)) + ::std::borrow::Cow::Owned(format!($fmt, $($args),*)) as ::std::borrow::Cow } else { ::std::borrow::Cow::Borrowed($borrowed) }