Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions rustfmt.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# https://github.com/rust-lang/rustfmt/issues/4991
#imports_granularity = "Crate"
13 changes: 7 additions & 6 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -213,12 +213,13 @@ extern crate lazy_static;
mod test;

use heck::{ToShoutySnakeCase, ToSnakeCase};
use std::collections::{BTreeMap, HashMap};
use std::env;
use std::fmt;
use std::ops::RangeBounds;
use std::path::{Path, PathBuf};
use std::str::FromStr;
use std::{
collections::{BTreeMap, HashMap},
env, fmt,
ops::RangeBounds,
path::{Path, PathBuf},
str::FromStr,
};

mod metadata;
use metadata::MetaData;
Expand Down
6 changes: 4 additions & 2 deletions src/metadata.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,10 @@

use std::{fmt, fs, io::Read, path::Path};

use toml::de::{DeArray, DeTable, DeValue};
use toml::Spanned;
use toml::{
de::{DeArray, DeTable, DeValue},
Spanned,
};

#[derive(Debug, PartialEq)]
pub(crate) struct MetaData {
Expand Down
14 changes: 8 additions & 6 deletions src/test.rs
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
use itertools::Itertools;
use std::cell::Cell;
use std::collections::HashMap;
use std::env;
use std::path::{Path, PathBuf};
use std::rc::Rc;
use std::sync::Mutex;
use std::{
cell::Cell,
collections::HashMap,
env,
path::{Path, PathBuf},
rc::Rc,
sync::Mutex,
};

use assert_matches::assert_matches;

Expand Down
Loading