Skip to content
This repository was archived by the owner on May 20, 2025. It is now read-only.

Commit 9e474d6

Browse files
jinankjainrbradford
authored andcommitted
Cargo.toml: Update thiserror to latest version
Along with this there are some code changes to accomodate breaking changes in thiserror crate with newer version. Signed-off-by: Jinank Jain <jinankjain@microsoft.com>
1 parent bb6db80 commit 9e474d6

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ log = "0.4.17"
1717
serde = { version = "1.0.151", features = ["rc"] }
1818
serde_derive = "1.0.149"
1919
serde_json = "1.0.93"
20-
thiserror = "1.0.38"
20+
thiserror = "2.0.12"
2121
vfio-bindings = { version = "0.4.0", features = ["fam-wrappers"] }
2222
vm-memory = { version = "0.16.0", features = ["backend-mmap", "backend-atomic"] }
2323
vmm-sys-util = "0.13.0"

examples/gpio/pci.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -304,9 +304,9 @@ pub enum Error {
304304
BarInUse(PciBarIndex),
305305
#[error("64bit bar {0} already used (requires two regs)")]
306306
BarInUse64(PciBarIndex),
307-
#[error("bar {0} invalid, max {}", NUM_BAR_REGS - 1)]
307+
#[error("bar {bar_index} invalid, max {max}", bar_index = .0, max = NUM_BAR_REGS - 1)]
308308
BarInvalid(PciBarIndex),
309-
#[error("64bitbar {0} invalid, requires two regs, max {}", ROM_BAR_IDX - 1)]
309+
#[error("64bitbar {bar_index} invalid, requires two regs, {max}", bar_index = .0, max = ROM_BAR_IDX - 1)]
310310
BarInvalid64(PciBarIndex),
311311
#[error("expansion rom bar must be a memory region")]
312312
BarInvalidRomType,

0 commit comments

Comments
 (0)