diff --git a/src/ast.rs b/src/ast.rs index 29d1004..c9c755f 100644 --- a/src/ast.rs +++ b/src/ast.rs @@ -211,7 +211,7 @@ pub struct MonotonicArgs { pub binds: Ident, /// The priority of this monotonic - pub priority: u8, + pub priority: Option, /// If this is the default monotonic pub default: bool, diff --git a/src/parse.rs b/src/parse.rs index 09e6433..08ad6cb 100644 --- a/src/parse.rs +++ b/src/parse.rs @@ -470,7 +470,6 @@ fn monotonic_args(tokens: TokenStream2) -> parse::Result { "`binds = ...` is missing", )); }; - let priority = priority.unwrap_or(1); let default = default.unwrap_or(false); Ok(MonotonicArgs {