Skip to content

Commit

Permalink
Simplify expression
Browse files Browse the repository at this point in the history
  • Loading branch information
Zokhoi committed Sep 11, 2024
1 parent e653e8f commit 3638970
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/tree/link.rs
Original file line number Diff line number Diff line change
Expand Up @@ -185,10 +185,7 @@ fn test_link_extra() {
macro_rules! check {
($input:expr => $expected:expr) => {{
let actual = LinkLocation::parse_extra(cow!($input));
let expected = match $expected {
None => None,
Some(extra) => Some(cow!(extra)),
};
let expected = $expected.map(|s| cow!(s));

assert_eq!(
actual, expected,
Expand Down

0 comments on commit 3638970

Please sign in to comment.