mirror of
https://github.com/emilk/egui.git
synced 2026-08-31 13:50:04 -04:00
Clean up some macro syntax
This commit is contained in:
@@ -15,7 +15,7 @@ pub trait Numeric: Clone + Copy + PartialEq + PartialOrd + 'static {
|
||||
}
|
||||
|
||||
macro_rules! impl_numeric_float {
|
||||
($t:ident) => {
|
||||
($t: ident) => {
|
||||
impl Numeric for $t {
|
||||
const INTEGRAL: bool = false;
|
||||
const MIN: Self = std::$t::MIN;
|
||||
@@ -35,7 +35,7 @@ macro_rules! impl_numeric_float {
|
||||
}
|
||||
|
||||
macro_rules! impl_numeric_integer {
|
||||
($t:ident) => {
|
||||
($t: ident) => {
|
||||
impl Numeric for $t {
|
||||
const INTEGRAL: bool = true;
|
||||
const MIN: Self = std::$t::MIN;
|
||||
|
||||
Reference in New Issue
Block a user