diff options
author | Martin Fischer <martin@push-f.com> | 2021-11-30 10:31:17 +0100 |
---|---|---|
committer | Martin Fischer <martin@push-f.com> | 2021-11-30 11:22:35 +0100 |
commit | 0420ea72655b74ae6e6f0add1f82f5da687f9a76 (patch) | |
tree | e3528c8a8746dabcdf1eb07242eab2a9cf69e808 | |
parent | 14f1a85d994ad97dae3d9de735fc51adb25d390a (diff) |
make CharRefError::InvalidNamedCharRef feature-bound
-rw-r--r-- | src/tokenizer/error.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/tokenizer/error.rs b/src/tokenizer/error.rs index 89eed2a..0acc88f 100644 --- a/src/tokenizer/error.rs +++ b/src/tokenizer/error.rs @@ -46,6 +46,8 @@ pub enum CharRefError { EofInNumericCharRef, EofAfterNumberSign, EqualsSignAfterCharRefInAttr, + #[cfg(feature = "named-entities")] + #[cfg_attr(docsrs, doc(cfg(feature = "named-entities")))] InvalidNamedCharRef, } @@ -70,6 +72,7 @@ impl Display for CharRefError { CharRefError::EqualsSignAfterCharRefInAttr => { write!(f, "equals sign after character reference in attribute") } + #[cfg(feature = "named-entities")] CharRefError::InvalidNamedCharRef => { write!(f, "invalid named character reference") } |