Skip to content

Commit

Permalink
Fixing linting issue
Browse files Browse the repository at this point in the history
Signed-off-by: David Gilligan-Cook <dcook@imageworks.com>
  • Loading branch information
dcookspi committed Jul 4, 2024
1 parent 1cfe288 commit b63cc11
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/spk-solve/src/io.rs
Original file line number Diff line number Diff line change
Expand Up @@ -770,7 +770,7 @@ impl MultiSolverKind {
/// Return the MultiSolverKind setting for a solver to run from a
/// config value. This will fallback to MultiSolverKind:Cli if the
/// given value is invalid.
fn from_config_run_value(value: &String) -> MultiSolverKind {
fn from_config_run_value(value: &str) -> MultiSolverKind {
match value.to_lowercase().as_ref() {
CLI_SOLVER => MultiSolverKind::Unchanged,
IMPOSSIBLE_CHECKS_SOLVER => MultiSolverKind::AllImpossibleChecks,
Expand All @@ -782,7 +782,7 @@ impl MultiSolverKind {
/// Return the MultiSolverKind setting for a solver to output from a
/// config value. This will fallback to MultiSolverKind:Cli if the
/// given value is invalid.
fn from_config_output_value(value: &String) -> MultiSolverKind {
fn from_config_output_value(value: &str) -> MultiSolverKind {
match value.to_lowercase().as_ref() {
CLI_SOLVER => MultiSolverKind::Unchanged,
IMPOSSIBLE_CHECKS_SOLVER => MultiSolverKind::AllImpossibleChecks,
Expand Down

0 comments on commit b63cc11

Please sign in to comment.