From 0753b1206b79254b9c71d82ccfcbd2ddb9c00fc2 Mon Sep 17 00:00:00 2001 From: Daniel Bevenius Date: Sat, 16 Nov 2019 19:26:45 +0100 Subject: [PATCH] Use nested paths for use declarations (#576) * Use nested paths for use declarations This commit uses nested paths for cranelift_codegen and some of the standard library use declarations. The main motivation for this is that it seems to be consistent with other use declarations in this file, and saves a few lines. * squash: fix rustfmt issues --- src/bin/wasmtime.rs | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/bin/wasmtime.rs b/src/bin/wasmtime.rs index e19dbd67f3..b935fbe4fa 100644 --- a/src/bin/wasmtime.rs +++ b/src/bin/wasmtime.rs @@ -31,15 +31,11 @@ )] use anyhow::{bail, Context as _, Result}; -use cranelift_codegen::settings; -use cranelift_codegen::settings::Configurable; +use cranelift_codegen::{settings, settings::Configurable}; use docopt::Docopt; use serde::Deserialize; -use std::collections::HashMap; -use std::ffi::OsStr; -use std::fs::File; use std::path::{Component, Path}; -use std::process::exit; +use std::{collections::HashMap, ffi::OsStr, fs::File, process::exit}; use wasi_common::preopen_dir; use wasmtime_api::{Config, Engine, HostRef, Instance, Module, Store}; use wasmtime_cli::pick_compilation_strategy;