Skip to content

Commit ae7c6ae

Browse files
Allow dead code for an error enum that is not being used
We do generate css::ParseErrorKind at some point, I think, but we don't consult it or print it. No idea where to do that, i.e. at what point after calling some API from cssparser or selectors. Part-of: <https://gitlab.gnome.org/GNOME/librsvg/-/merge_requests/985>
1 parent 3fa00be commit ae7c6ae

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

rsvg/src/css.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,7 @@ pub struct RuleParser {
186186
}
187187

188188
/// Errors from the CSS parsing process
189+
#[allow(dead_code)] // looks like we are not actually using this yet?
189190
#[derive(Debug)]
190191
pub enum ParseErrorKind<'i> {
191192
Selector(selectors::parser::SelectorParseErrorKind<'i>),

0 commit comments

Comments
 (0)