Remove unnecessary format!() call
This commit is contained in:
parent
4e1a75a429
commit
feeca8a724
1 changed files with 3 additions and 3 deletions
|
@ -73,9 +73,9 @@ impl CliOptions {
|
|||
.map(|c| c == "nightly")
|
||||
.unwrap_or(false);
|
||||
if unstable_features && !rust_nightly {
|
||||
return Err(FmtError::from(format!(
|
||||
"Unstable features are only available on Nightly channel"
|
||||
)));
|
||||
return Err(FmtError::from(
|
||||
"Unstable features are only available on Nightly channel",
|
||||
));
|
||||
} else {
|
||||
options.unstable_features = unstable_features;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue