Skip to content

Commit 9ba39eb

Browse files
bors[bot]korken89
andauthored
Merge #56
56: Make it possible to see if the monotonic's priority is set or default r=AfoHT a=korken89 Co-authored-by: Emil Fresk <emil.fresk@gmail.com>
2 parents b5389b4 + fd482d0 commit 9ba39eb

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

src/ast.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ pub struct MonotonicArgs {
211211
pub binds: Ident,
212212

213213
/// The priority of this monotonic
214-
pub priority: u8,
214+
pub priority: Option<u8>,
215215

216216
/// If this is the default monotonic
217217
pub default: bool,

src/parse.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -470,7 +470,6 @@ fn monotonic_args(tokens: TokenStream2) -> parse::Result<MonotonicArgs> {
470470
"`binds = ...` is missing",
471471
));
472472
};
473-
let priority = priority.unwrap_or(1);
474473
let default = default.unwrap_or(false);
475474

476475
Ok(MonotonicArgs {

0 commit comments

Comments
 (0)