1
Fork 0

Remove unnecessary format!() call

This commit is contained in:
topecongiro 2017-11-05 14:03:43 +09:00
parent 4e1a75a429
commit feeca8a724

View file

@ -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;
}