Skip to content

Commit 30a8298

Browse files
committed
Parser config build
1 parent 8145969 commit 30a8298

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

svd-parser/src/lib.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,13 @@ pub struct Config {
4343
//pub expand_derived: bool,
4444
}
4545

46+
impl Config {
47+
pub fn validate_level(mut self, lvl: ValidateLevel) -> Self {
48+
self.validate_level = lvl;
49+
self
50+
}
51+
}
52+
4653
/// Parse trait allows SVD objects to be parsed from XML elements.
4754
pub trait Parse {
4855
/// Object returned by parse method

0 commit comments

Comments
 (0)