Skip to content

Commit

Permalink
Opps, used feature from too new a Rust version.
Browse files Browse the repository at this point in the history
  • Loading branch information
Lymia committed Apr 12, 2022
1 parent b3ce504 commit 45164a9
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions enumset_derive/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(())
}
Expand Down

0 comments on commit 45164a9

Please sign in to comment.