Skip to content

Commit

Permalink
Fix dead code warnings in example
Browse files Browse the repository at this point in the history
  • Loading branch information
Mingun committed Mar 31, 2024
1 parent 56619f8 commit ff5630c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions examples/read_nodes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ const XML: &str = r#"
</Localization>
"#;

// Enum variants is not read in example, so suppress the warning
#[allow(dead_code)]
#[derive(Debug)]
enum AppError {
/// XML parsing error
Expand Down

0 comments on commit ff5630c

Please sign in to comment.