Skip to content

Commit f6fe6ba

Browse files
committed
Use tidy
1 parent 8b4f2c2 commit f6fe6ba

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

compiler/rustc_session/src/config.rs

+7-1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ use std::path::{Path, PathBuf};
1313
use std::str::{self, FromStr};
1414
use std::sync::LazyLock;
1515
use std::{cmp, fmt, fs, iter};
16+
1617
use rustc_data_structures::fx::{FxHashSet, FxIndexMap};
1718
use rustc_data_structures::stable_hasher::{StableOrd, ToStableHashKey};
1819
use rustc_errors::emitter::HumanReadableErrorType;
@@ -2700,7 +2701,12 @@ pub fn parse_crate_types_from_list(list_list: Vec<String>) -> Result<Vec<CrateTy
27002701
"cdylib" => CrateType::Cdylib,
27012702
"bin" => CrateType::Executable,
27022703
"proc-macro" => CrateType::ProcMacro,
2703-
_ => return Err(format!("unknown crate type: `{part}` - expected one of: {display}", display = CrateType::shorthands_display())),
2704+
_ => {
2705+
return Err(format!(
2706+
"unknown crate type: `{part}` - expected one of: {display}",
2707+
display = CrateType::shorthands_display()
2708+
));
2709+
}
27042710
};
27052711
if !crate_types.contains(&new_part) {
27062712
crate_types.push(new_part)

0 commit comments

Comments
 (0)