From 36e9ff3c86a2807224a90a0c7b770d775b994f84 Mon Sep 17 00:00:00 2001 From: Rerumu Date: Mon, 25 Apr 2022 21:26:11 -0400 Subject: [PATCH] Add import formatting default --- rustfmt.toml | 1 + wasm-ast/src/node.rs | 6 +----- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/rustfmt.toml b/rustfmt.toml index 218e203..87981cd 100755 --- a/rustfmt.toml +++ b/rustfmt.toml @@ -1 +1,2 @@ hard_tabs = true +imports_granularity = "Crate" diff --git a/wasm-ast/src/node.rs b/wasm-ast/src/node.rs index 4787451..7ff365a 100644 --- a/wasm-ast/src/node.rs +++ b/wasm-ast/src/node.rs @@ -1,10 +1,6 @@ use std::ops::Range; -use parity_wasm::elements::{BrTableData, Local}; - -use std::convert::TryFrom; - -use parity_wasm::elements::{Instruction, SignExtInstruction}; +use parity_wasm::elements::{BrTableData, Instruction, Local, SignExtInstruction}; #[allow(non_camel_case_types)] #[derive(Clone, Copy)]