Skip to content

Commit e79eaca

Browse files
authored
Merge pull request #231 from LingMan/rustfmt
Have rustfmt reorder imports
2 parents 762c4cf + 9dadcbd commit e79eaca

File tree

5 files changed

+7
-8
lines changed

5 files changed

+7
-8
lines changed

rustfmt.toml

Lines changed: 0 additions & 1 deletion
This file was deleted.

src/git.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ use std::env;
77
use std::ops::Deref;
88
use std::path::Path;
99

10-
use chrono::{TimeZone, Utc};
1110
use anyhow::{bail, Context};
11+
use chrono::{TimeZone, Utc};
1212
use git2::build::RepoBuilder;
1313
use git2::{Commit as Git2Commit, Repository};
1414
use log::debug;

src/github.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
use anyhow::{bail, Context};
2+
use reqwest::header::{HeaderMap, HeaderValue, InvalidHeaderValue, AUTHORIZATION, USER_AGENT};
23
use reqwest::{self, blocking::Client, blocking::Response};
3-
use reqwest::header::{HeaderMap, InvalidHeaderValue, HeaderValue, USER_AGENT, AUTHORIZATION};
44
use serde::{Deserialize, Serialize};
55

6-
use crate::{Commit, GitDate, parse_to_utc_date};
6+
use crate::{parse_to_utc_date, Commit, GitDate};
77

88
#[derive(Serialize, Deserialize, Debug)]
99
struct GithubCommitComparison {

src/main.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ use std::path::PathBuf;
1313
use std::process;
1414
use std::str::FromStr;
1515

16+
use anyhow::{bail, Context};
1617
use chrono::{Date, Duration, NaiveDate, Utc};
1718
use clap::{ArgAction, Parser, ValueEnum};
1819
use colored::Colorize;
19-
use anyhow::{bail, Context};
2020
use log::debug;
2121
use reqwest::blocking::Client;
2222

@@ -29,8 +29,8 @@ mod toolchains;
2929
use crate::least_satisfying::{least_satisfying, Satisfies};
3030
use crate::repo_access::{AccessViaGithub, AccessViaLocalGit, RustRepositoryAccessor};
3131
use crate::toolchains::{
32-
DownloadParams, InstallError, NIGHTLY_SERVER, TestOutcome, Toolchain, ToolchainSpec,
33-
YYYY_MM_DD, download_progress, parse_to_utc_date,
32+
download_progress, parse_to_utc_date, DownloadParams, InstallError, TestOutcome, Toolchain,
33+
ToolchainSpec, NIGHTLY_SERVER, YYYY_MM_DD,
3434
};
3535

3636
#[derive(Debug, Clone, PartialEq)]

src/repo_access.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
use anyhow::Context;
22

3-
use crate::{Bound, Commit, GitDate, git, github};
3+
use crate::{git, github, Bound, Commit, GitDate};
44

55
pub(crate) trait RustRepositoryAccessor {
66
/// Maps `bound` to its associated date, looking up its commit if necessary.

0 commit comments

Comments
 (0)