Skip to content

Commit e6575c0

Browse files
committed
fixes
1 parent b551689 commit e6575c0

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ thiserror = "1.0.5"
4444

4545
[dependencies.svd-parser]
4646
git = "https://github.com/rust-embedded/svd"
47-
branch = "anyhow"
4847
version = "0.8.1"
4948
features = ["derive-from"]
5049

src/generate/peripheral.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -600,7 +600,7 @@ fn expand_cluster(cluster: &Cluster, defs: &RegisterProperties) -> Result<Vec<Re
600600
let defs = cluster.default_register_properties.derive_from(defs);
601601

602602
let cluster_size = cluster_size_in_bits(cluster, &defs)
603-
.context(format!("Cluster {} has no determinable `size` field", cluster.name))?;
603+
.with_context(|| format!("Cluster {} has no determinable `size` field", cluster.name))?;
604604

605605
match cluster {
606606
Cluster::Single(info) => cluster_expanded.push(RegisterBlockField {

src/main.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,16 +76,16 @@ fn run() -> Result<()> {
7676
match matches.value_of("input") {
7777
Some(file) => {
7878
File::open(file)
79-
.context("couldn't open the SVD file")?
79+
.context("Cannot open the SVD file")?
8080
.read_to_string(xml)
81-
.context("couldn't read the SVD file")?;
81+
.context("Cannot read the SVD file")?;
8282
}
8383
None => {
8484
let stdin = std::io::stdin();
8585
stdin
8686
.lock()
8787
.read_to_string(xml)
88-
.context("couldn't read from stdin")?;
88+
.context("Cannot read from stdin")?;
8989
}
9090
}
9191

0 commit comments

Comments
 (0)