Skip to content

Commit

Permalink
Use format! so that an inlined variable is properly printed (#112)
Browse files Browse the repository at this point in the history
  • Loading branch information
cspiegel authored Nov 19, 2023
1 parent b15ca74 commit ccc9e71
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -512,7 +512,7 @@ fn get_sdk(
let (_, mi) = pkgs
.iter()
.find(|(key, _)| key.ends_with(&sdk_version))
.with_context(|| "unable to locate SDK '{sdk_version}'")?;
.with_context(|| format!("unable to locate SDK '{sdk_version}'"))?;

(mi, sv)
} else {
Expand Down

0 comments on commit ccc9e71

Please sign in to comment.