summaryrefslogtreecommitdiffstats
path: root/src/file/source/file.rs
diff options
context:
space:
mode:
authorMatthias Beyer <mail@beyermatthias.de>2021-03-31 15:09:38 +0200
committerMatthias Beyer <mail@beyermatthias.de>2021-04-09 09:47:11 +0200
commit00db885e88bd3957872278d41f991046435d335c (patch)
treec63ee3f78681199bb23ce92197f010ee2618da79 /src/file/source/file.rs
parent938fd42200a2fc3e66c8f90b8d57b52c333d534d (diff)
Ensure order in the galaxy... I mean the imports
This patch sorts the imports: 1. std imports 2. external crate imports 3. own module imports In three blocks, each alphabetically (with is also enforced by rustfmt). As well as it prefixes the imports of own modules with crate:: This is just a quality-of-life patch :-) Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
Diffstat (limited to 'src/file/source/file.rs')
-rw-r--r--src/file/source/file.rs7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/file/source/file.rs b/src/file/source/file.rs
index 12805fd..75634dd 100644
--- a/src/file/source/file.rs
+++ b/src/file/source/file.rs
@@ -1,13 +1,12 @@
-use std::error::Error;
-
-use file::format::ALL_EXTENSIONS;
use std::env;
+use std::error::Error;
use std::fs;
use std::io::{self, Read};
use std::iter::Iterator;
use std::path::{Path, PathBuf};
-use super::{FileFormat, FileSource};
+use crate::file::format::ALL_EXTENSIONS;
+use crate::file::{FileFormat, FileSource};
/// Describes a file sourced from a file
#[derive(Clone, Debug)]