Skip to content

Commit 2415a29

Browse files
committed
Make rustfmt happy
1 parent 930134c commit 2415a29

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

src/cargo/core/package_id_spec.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ use url::Url;
88
use crate::core::interning::InternedString;
99
use crate::core::PackageId;
1010
use crate::util::errors::{CargoResult, CargoResultExt};
11-
use crate::util::{validate_package_name, ToSemver, IntoUrl};
11+
use crate::util::{validate_package_name, IntoUrl, ToSemver};
1212

1313
/// Some or all of the data required to identify a package:
1414
///

src/cargo/sources/git/utils.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ use crate::core::GitReference;
1616
use crate::util::errors::{CargoResult, CargoResultExt};
1717
use crate::util::paths;
1818
use crate::util::process_builder::process;
19-
use crate::util::{internal, network, Config, Progress, IntoUrl};
19+
use crate::util::{internal, network, Config, IntoUrl, Progress};
2020

2121
#[derive(PartialEq, Clone, Debug)]
2222
pub struct GitRevision(git2::Oid);

src/cargo/util/mod.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ pub use self::errors::{CargoTestError, CliError, ProcessError};
1010
pub use self::flock::{FileLock, Filesystem};
1111
pub use self::graph::Graph;
1212
pub use self::hex::{hash_u64, short_hash, to_hex};
13+
pub use self::into_url::IntoUrl;
14+
pub use self::into_url_with_base::IntoUrlWithBase;
1315
pub use self::lev_distance::lev_distance;
1416
pub use self::lockserver::{LockServer, LockServerClient, LockServerStarted};
1517
pub use self::paths::{bytes2path, dylib_path, join_paths, path2bytes};
@@ -20,8 +22,6 @@ pub use self::read2::read2;
2022
pub use self::rustc::Rustc;
2123
pub use self::sha256::Sha256;
2224
pub use self::to_semver::ToSemver;
23-
pub use self::into_url::IntoUrl;
24-
pub use self::into_url_with_base::IntoUrlWithBase;
2525
pub use self::vcs::{existing_vcs_repo, FossilRepo, GitRepo, HgRepo, PijulRepo};
2626
pub use self::workspace::{
2727
print_available_benches, print_available_binaries, print_available_examples,
@@ -38,6 +38,8 @@ mod flock;
3838
pub mod graph;
3939
pub mod hex;
4040
pub mod important_paths;
41+
pub mod into_url;
42+
mod into_url_with_base;
4143
pub mod job;
4244
pub mod lev_distance;
4345
mod lockserver;
@@ -51,8 +53,6 @@ mod read2;
5153
pub mod rustc;
5254
mod sha256;
5355
pub mod to_semver;
54-
pub mod into_url;
55-
mod into_url_with_base;
5656
pub mod toml;
5757
mod vcs;
5858
mod workspace;

0 commit comments

Comments
 (0)