We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3d17fd6 commit 88de01aCopy full SHA for 88de01a
qlty-check/src/tool/rust.rs
@@ -34,7 +34,13 @@ impl Tool for Rust {
34
}
35
36
fn install(&self, task: &ProgressTask) -> Result<()> {
37
- task.set_message(&format!("Installing Rust v{}", self.version().unwrap()));
+ let version = self.version().unwrap();
38
+ let version = if version.chars().next().unwrap().is_numeric() {
39
+ format!("v{}", version)
40
+ } else {
41
+ version // e.g. "nightly"
42
+ };
43
+ task.set_message(&format!("Installing Rust {}", version));
44
self.download().install(self.directory(), self.name())?;
45
Ok(())
46
0 commit comments