]> git.lizzy.rs Git - enumset.git/commitdiff
Opps, used feature from too new a Rust version.
authorAlissa Rao <lymia@lymiahugs.com>
Tue, 12 Apr 2022 10:11:20 +0000 (03:11 -0700)
committerAlissa Rao <lymia@lymiahugs.com>
Tue, 12 Apr 2022 10:11:20 +0000 (03:11 -0700)
enumset_derive/src/lib.rs

index cef5a39bdb196ac2a05e566c3e5e42da50732270..88ac367e0ad914cf317bc046bebc9a51e1c655e2 100644 (file)
@@ -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(())
         }