Skip to content

Commit

Permalink
Merge pull request #789 from hermit-os/thiserror-ambiguous
Browse files Browse the repository at this point in the history
fix(params): ambiguous reference to positional arguments
  • Loading branch information
mkroening authored Nov 11, 2024
2 parents 2170444 + d2581ee commit 97acbe6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/params.rs
Original file line number Diff line number Diff line change
Expand Up @@ -126,8 +126,8 @@ impl fmt::Display for GuestMemorySize {
#[derive(Error, Debug)]
pub enum InvalidGuestMemorySizeError {
#[error(
"Not enough guest memory. Must be at least {} (is {0})",
GuestMemorySize::minimum()
"Not enough guest memory. Must be at least {min} (is {0})",
min = GuestMemorySize::minimum()
)]
MemoryTooSmall(Byte),
#[error("Invalid amount of guest memory. Must be a multiple of 2 MiB (is {0})")]
Expand Down

0 comments on commit 97acbe6

Please sign in to comment.