types: order imports in path.rs

Summary:
The order of imports we're trying to follow is: std, remote crates
(ie: crates.io), local crates (ie: fbcode crates), and crate local. A new line
in between each group can be used to prevent rustfmt from re-ordering them.

Reviewed By: singhsrb

Differential Revision: D14243163

fbshipit-source-id: fbbb07693af14b13ae6b3f4e788972d99193fd64
This commit is contained in:
Stefan Filip 2019-02-27 09:55:10 -08:00 committed by Facebook Github Bot
parent 6825832b19
commit d543e91b45

View File

@ -29,12 +29,15 @@
//! where all indexing is done using components. The index in those cases must be able to own
//! component. Writing it in terms of `RepoPathBuf` would probably be less readable that
//! writing it in terms of `String`.
use std::{
borrow::{Borrow, ToOwned},
convert::AsRef,
fmt, mem,
ops::Deref,
};
use failure::{bail, Fallible};
use std::borrow::{Borrow, ToOwned};
use std::convert::AsRef;
use std::fmt;
use std::mem;
use std::ops::Deref;
/// An owned version of a `RepoPath`.
#[derive(Clone, Debug, Default, Ord, PartialOrd, Eq, PartialEq, Hash)]