Skip to content

Commit

Permalink
Resolved some warnings for rust-lang/rust#93415
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael-F-Bryan committed Aug 17, 2022
1 parent 3924d99 commit df3e6fc
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/data/lock/lockfile_command.rs
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,6 @@ impl<'a> LockfileCommand {
pub enum Error {
#[error("The module for this command does not exist. Did you modify the wapm.lock?")]
ModuleForCommandDoesNotExist,
#[error("Could not parse the package name and version \"{0}\" for the command \"{}\".")]
#[error("Could not parse the package name and version \"{0}\" for the command \"{1}\".")]
CouldNotParsePackageVersionForCommand(String, String),
}
4 changes: 2 additions & 2 deletions src/dataflow/find_command_result.rs
Original file line number Diff line number Diff line change
Expand Up @@ -62,11 +62,11 @@ pub enum Error {
)]
ErrorReadingLocalDirectory(String, String),
#[error(
"Command \"{0}\" exists in lockfile, but corresponding module \"{}\" not found in lockfile.",
"Command \"{0}\" exists in lockfile, but corresponding module \"{1}\" not found in lockfile.",
)]
CommandFoundButCorrespondingModuleIsMissing(String, String),
#[error(
"Failed to get command \"{0}\" because there was an error opening the global installation directory. {}",
"Failed to get command \"{0}\" because there was an error opening the global installation directory. {1}",
)]
CouldNotOpenGlobalsDirectory(String, String),
}
Expand Down
2 changes: 1 addition & 1 deletion src/util.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ pub static MAX_NAME_LENGTH: usize = 50;
pub enum NameError {
#[error("Please enter a name")]
Empty,
#[error("The name \"{0}\" is too long. It must be {} characters or fewer")]
#[error("The name \"{0}\" is too long. It must be {1} characters or fewer")]
NameTooLong(String, usize),
#[error(
"The name \"{0}\" contains invalid characters. Please use alpha-numeric characters, '-', and '_'",
Expand Down

0 comments on commit df3e6fc

Please sign in to comment.