From 2156e100ee92a1431f401a603d6c3ea1b043bb44 Mon Sep 17 00:00:00 2001 From: Wez Furlong Date: Wed, 22 May 2024 14:48:43 -0700 Subject: [PATCH] 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: `` | = note: bare URLs are not automatically turned into clickable links = note: `#[warn(rustdoc::bare_urls)]` on by default ``` --- instant-xml/src/de.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/instant-xml/src/de.rs b/instant-xml/src/de.rs index ab770fc..7d67f94 100644 --- a/instant-xml/src/de.rs +++ b/instant-xml/src/de.rs @@ -496,7 +496,7 @@ enum DecodeState { Entity([u8; 6], usize), } -/// Valid character ranges per https://www.w3.org/TR/xml/#NT-Char +/// Valid character ranges per 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}') }