diff options
| author | Laurenz <laurmaedje@gmail.com> | 2023-01-27 12:16:54 +0100 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2023-01-27 12:16:54 +0100 |
| commit | 9d962c5c40da12207433a6e88aa34f11d036af37 (patch) | |
| tree | 3b38502a4dc2cb1818f8282a400194937d0ac336 /src/syntax/ast.rs | |
| parent | 43ef60c09cc48f6b7c6dd752ab7af7c0d6071bc5 (diff) | |
More `track_caller` annotations
Diffstat (limited to 'src/syntax/ast.rs')
| -rw-r--r-- | src/syntax/ast.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/syntax/ast.rs b/src/syntax/ast.rs index 3b573f7d..a24b9fa2 100644 --- a/src/syntax/ast.rs +++ b/src/syntax/ast.rs @@ -406,7 +406,7 @@ impl Shorthand { "|->" => '↦', "<->" => '↔', "<=>" => '⇔', - _ => panic!("shorthand is invalid"), + _ => char::default(), } } } @@ -879,7 +879,7 @@ impl Numeric { "em" => Unit::Em, "fr" => Unit::Fr, "%" => Unit::Percent, - _ => panic!("number has invalid suffix"), + _ => Unit::Percent, }; (value, unit) |
