From 45164a98b502ffe04120c2bbe044f69b6c3fe3e9 Mon Sep 17 00:00:00 2001 From: Alissa Rao Date: Tue, 12 Apr 2022 03:11:20 -0700 Subject: [PATCH] Opps, used feature from too new a Rust version. --- enumset_derive/src/lib.rs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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(()) } -- 2.44.0