Skip to content

Commit ff5630c

Browse files
committed
Fix dead code warnings in example
1 parent 56619f8 commit ff5630c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

examples/read_nodes.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ const XML: &str = r#"
3030
</Localization>
3131
"#;
3232

33+
// Enum variants is not read in example, so suppress the warning
34+
#[allow(dead_code)]
3335
#[derive(Debug)]
3436
enum AppError {
3537
/// XML parsing error

0 commit comments

Comments
 (0)