Skip to content

Commit 792480b

Browse files
committed
errors
1 parent 8942037 commit 792480b

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

src/bin/cratesfyi.rs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -178,12 +178,7 @@ enum CommandLine {
178178
impl CommandLine {
179179
fn handle_args(self) -> Result<()> {
180180
let config = Config::from_env()?.build()?;
181-
let runtime = Arc::new(
182-
runtime::Builder::new_multi_thread()
183-
.enable_all()
184-
.build()
185-
.expect("failed to initialize runtime"),
186-
);
181+
let runtime = Arc::new(runtime::Builder::new_multi_thread().enable_all().build()?);
187182
let ctx = runtime.block_on(Context::from_config(config))?;
188183

189184
match self {

0 commit comments

Comments
 (0)