-
Notifications
You must be signed in to change notification settings - Fork 59
Parse <register><alternateRegister> elements #50
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, some changes needed.
.gitignore
Outdated
@@ -1,4 +1,5 @@ | |||
*.rs.bk | |||
.*sw* |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[._]*.sw[a-p]
is a better solution for matching vim swap files.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
will amend
src/lib.rs
Outdated
|s| { | ||
s.to_owned() | ||
}, | ||
), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This indentation is uneeded
tree.attributes.get("derivedFrom").map(|s| s.to_owned()),
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I copied this from the other instance of derivedFrom
. Note that the .rustfmt.toml
config wants this to be:
derived_from: tree.attributes
.get("derivedFrom")
.map(|s| s.to_owned()),
There are other portions that are not rustfmt'd. Would you like me to insert a commit that applies rustfmt underneath my changes and then make them match?
#51 for rustfmt, I'll amend this one independently from that for now |
(force pushed with your suggested changes; you'll probably need to hard refresh the PR page) |
This is a very basic first cut at expanding registers with derivedFrom. This commit requires rust-embedded/svd#50
Thank you! bors r+ |
50: Parse <register><alternateRegister> elements r=Emilgardis a=wez In looking at rust-embedded/svd2rust#191 and rust-embedded/svd2rust#16 I thought that this might help, so here's the trivial patch.
Build succeeded |
This is a very basic first cut at expanding registers with derivedFrom. This commit requires rust-embedded/svd#50
This is a very basic first cut at expanding registers with derivedFrom. This commit requires rust-embedded/svd#50
This is a very basic first cut at expanding registers with derivedFrom. This commit requires rust-embedded/svd#50
This is a very basic first cut at expanding registers with derivedFrom. This commit requires rust-embedded/svd#50
This is a very basic first cut at expanding registers with derivedFrom. This commit requires rust-embedded/svd#50
In looking at rust-embedded/svd2rust#191 and rust-embedded/svd2rust#16 I thought that this might help, so here's the trivial patch.