We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8942037 commit 792480bCopy full SHA for 792480b
src/bin/cratesfyi.rs
@@ -178,12 +178,7 @@ enum CommandLine {
178
impl CommandLine {
179
fn handle_args(self) -> Result<()> {
180
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
- );
+ let runtime = Arc::new(runtime::Builder::new_multi_thread().enable_all().build()?);
187
let ctx = runtime.block_on(Context::from_config(config))?;
188
189
match self {
0 commit comments