diff options
Diffstat (limited to 'cli/npm/semver/specifier.rs')
-rw-r--r-- | cli/npm/semver/specifier.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cli/npm/semver/specifier.rs b/cli/npm/semver/specifier.rs index 3fdeab16d..b12a5c308 100644 --- a/cli/npm/semver/specifier.rs +++ b/cli/npm/semver/specifier.rs @@ -33,7 +33,7 @@ impl std::fmt::Display for SpecifierVersionReq { impl SpecifierVersionReq { pub fn parse(text: &str) -> Result<Self, AnyError> { with_failure_handling(parse_npm_specifier)(text).with_context(|| { - format!("Invalid npm specifier version requirement '{}'.", text) + format!("Invalid npm specifier version requirement '{text}'.") }) } @@ -143,7 +143,7 @@ fn nr(input: &str) -> ParseResult<u64> { Err(err) => { return ParseError::fail( input, - format!("Error parsing '{}' to u64.\n\n{:#}", result, err), + format!("Error parsing '{result}' to u64.\n\n{err:#}"), ) } }; |