mirror of
https://github.com/facebook/sapling.git
synced 2024-10-12 09:48:05 +03:00
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:
parent
6825832b19
commit
d543e91b45
@ -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)]
|
||||
|
Loading…
Reference in New Issue
Block a user