src/tools/disks/zpool_status.rs: move use clause top of file
This commit is contained in:
parent
d2ce211899
commit
eddd1a1b9c
|
@ -1,6 +1,8 @@
|
||||||
|
use std::mem::replace;
|
||||||
|
|
||||||
use anyhow::{bail, format_err, Error};
|
use anyhow::{bail, format_err, Error};
|
||||||
use serde::{Deserialize, Serialize};
|
use serde::{Deserialize, Serialize};
|
||||||
use serde_json::Value;
|
use serde_json::{Map, Value};
|
||||||
|
|
||||||
use crate::tools::nom::{
|
use crate::tools::nom::{
|
||||||
parse_complete, parse_error, parse_failure,
|
parse_complete, parse_error, parse_failure,
|
||||||
|
@ -191,9 +193,6 @@ where
|
||||||
I: IntoIterator<Item = &'a T>,
|
I: IntoIterator<Item = &'a T>,
|
||||||
F: Fn(&T) -> (Value, u64),
|
F: Fn(&T) -> (Value, u64),
|
||||||
{
|
{
|
||||||
use serde_json::Map;
|
|
||||||
use std::mem::replace;
|
|
||||||
|
|
||||||
struct StackItem {
|
struct StackItem {
|
||||||
node: Map<String, Value>,
|
node: Map<String, Value>,
|
||||||
level: u64,
|
level: u64,
|
||||||
|
|
Loading…
Reference in New Issue