Skip to content

Commit

Permalink
fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
farooqkz authored and Simon-Laux committed May 15, 2024
1 parent d7fd210 commit c4c2f7f
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions tests/links.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,20 +45,12 @@ fn basic_parsing() {
assert_eq!(rest.len(), 0);
assert_eq!(input, &link_destination.target);
}

}
}

#[test]
fn bare_scheme_no_parse() {
// bare scheme shouldn't be linkified
let bare = vec![
"tel",
"tel:",
"bitcoin:",
"mailto",
"https://",
"http://"
];
let bare = vec!["tel", "tel:", "bitcoin:", "mailto", "https://", "http://"];

for input in bare {
let result = LinkDestination::parse(input);
Expand Down

0 comments on commit c4c2f7f

Please sign in to comment.