Skip to content

Commit

Permalink
Undo single quotes; values aren't "arbitrary" enough to need them.
Browse files Browse the repository at this point in the history
  • Loading branch information
jsdw authored Jul 31, 2023
1 parent e70634d commit a42a45d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion scale-decode/src/error/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ pub enum ErrorKind {
#[display(fmt = "Error decoding bytes given the type ID and registry provided: {_0}")]
VisitorDecodeError(DecodeError),
/// We cannot decode the number seen into the target type; it's out of range.
#[display(fmt = "Number '{value}' is out of range")]
#[display(fmt = "Number {value} is out of range")]
NumberOutOfRange {
/// A string representation of the numeric value that was out of range.
value: String,
Expand Down
2 changes: 1 addition & 1 deletion scale-decode/src/visitor/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ pub enum DecodeError {
CannotDecodeCompactIntoType(scale_info::Type<PortableForm>),
/// Failure to decode bytes into a string.
#[from]
#[display(fmt = "Could not decode string: '{_0}'")]
#[display(fmt = "Could not decode string: {_0}")]
InvalidStr(alloc::str::Utf8Error),
/// We could not convert the [`u32`] that we found into a valid [`char`].
#[display(fmt = "{_0} is expected to be a valid char, but is not")]
Expand Down

0 comments on commit a42a45d

Please sign in to comment.