fix in "URL is not a hyperlinke" in cargo doc

```
warning: this URL is not a hyperlink
   --> /home/wez/wez-personal/instant-xml/instant-xml/src/de.rs:499:32
    |
499 | /// Valid character ranges per https://www.w3.org/TR/xml/#NT-Char
    |                                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use an automatic link instead: `<https://www.w3.org/TR/xml/#NT-Char>`
    |
    = note: bare URLs are not automatically turned into clickable links
    = note: `#[warn(rustdoc::bare_urls)]` on by default
```
This commit is contained in:
Wez Furlong 2024-05-22 14:48:43 -07:00 committed by Dirkjan Ochtman
parent 5c0171b474
commit 2156e100ee
1 changed files with 1 additions and 1 deletions

View File

@ -496,7 +496,7 @@ enum DecodeState {
Entity([u8; 6], usize), Entity([u8; 6], usize),
} }
/// Valid character ranges per https://www.w3.org/TR/xml/#NT-Char /// Valid character ranges per <https://www.w3.org/TR/xml/#NT-Char>
fn valid_xml_character(c: &char) -> bool { fn valid_xml_character(c: &char) -> bool {
matches!(c, '\u{9}' | '\u{A}' | '\u{D}' | '\u{20}'..='\u{D7FF}' | '\u{E000}'..='\u{FFFD}' | '\u{10000}'..='\u{10FFFF}') matches!(c, '\u{9}' | '\u{A}' | '\u{D}' | '\u{20}'..='\u{D7FF}' | '\u{E000}'..='\u{FFFD}' | '\u{10000}'..='\u{10FFFF}')
} }