From: Alissa Rao Date: Tue, 12 Apr 2022 10:11:20 +0000 (-0700) Subject: Opps, used feature from too new a Rust version. X-Git-Url: https://git.lizzy.rs/?a=commitdiff_plain;h=45164a98b502ffe04120c2bbe044f69b6c3fe3e9;p=enumset.git Opps, used feature from too new a Rust version. --- diff --git a/enumset_derive/src/lib.rs b/enumset_derive/src/lib.rs index cef5a39..88ac367 100644 --- a/enumset_derive/src/lib.rs +++ b/enumset_derive/src/lib.rs @@ -194,11 +194,14 @@ impl EnumSetInfo { "u128" => max_discrim >= 128, _ => error( Span::call_site(), - format!("Only `u8`, `u16`, `u32`, `u64` and `u128` are supported for {what}."), + format!( + "Only `u8`, `u16`, `u32`, `u64` and `u128` are supported for {}.", + what + ), )?, }; if is_overflowed { - error(Span::call_site(), format!("{what} cannot be smaller than bitset."))?; + error(Span::call_site(), format!("{} cannot be smaller than bitset.", what))?; } Ok(()) }