We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6d38138 commit f4f192dCopy full SHA for f4f192d
svd-rs/src/access.rs
@@ -48,12 +48,12 @@ impl Default for Access {
48
impl Access {
49
/// Parse a string into an [`Access`] value, returning [`Option::None`] if the string is not valid.
50
pub fn parse_str(s: &str) -> Option<Self> {
51
- match s {
+ match s.to_lowercase().as_str() {
52
"read-only" => Some(Self::ReadOnly),
53
"read-write" => Some(Self::ReadWrite),
54
- "read-writeOnce" => Some(Self::ReadWriteOnce),
+ "read-writeonce" => Some(Self::ReadWriteOnce),
55
"write-only" => Some(Self::WriteOnly),
56
- "writeOnce" => Some(Self::WriteOnce),
+ "writeonce" => Some(Self::WriteOnce),
57
_ => None,
58
}
59
0 commit comments