We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 762c4cf + 9dadcbd commit e79eacaCopy full SHA for e79eaca
rustfmt.toml
src/git.rs
@@ -7,8 +7,8 @@ use std::env;
7
use std::ops::Deref;
8
use std::path::Path;
9
10
-use chrono::{TimeZone, Utc};
11
use anyhow::{bail, Context};
+use chrono::{TimeZone, Utc};
12
use git2::build::RepoBuilder;
13
use git2::{Commit as Git2Commit, Repository};
14
use log::debug;
src/github.rs
@@ -1,9 +1,9 @@
1
2
+use reqwest::header::{HeaderMap, HeaderValue, InvalidHeaderValue, AUTHORIZATION, USER_AGENT};
3
use reqwest::{self, blocking::Client, blocking::Response};
-use reqwest::header::{HeaderMap, InvalidHeaderValue, HeaderValue, USER_AGENT, AUTHORIZATION};
4
use serde::{Deserialize, Serialize};
5
6
-use crate::{Commit, GitDate, parse_to_utc_date};
+use crate::{parse_to_utc_date, Commit, GitDate};
#[derive(Serialize, Deserialize, Debug)]
struct GithubCommitComparison {
src/main.rs
@@ -13,10 +13,10 @@ use std::path::PathBuf;
use std::process;
use std::str::FromStr;
15
16
+use anyhow::{bail, Context};
17
use chrono::{Date, Duration, NaiveDate, Utc};
18
use clap::{ArgAction, Parser, ValueEnum};
19
use colored::Colorize;
-use anyhow::{bail, Context};
20
21
use reqwest::blocking::Client;
22
@@ -29,8 +29,8 @@ mod toolchains;
29
use crate::least_satisfying::{least_satisfying, Satisfies};
30
use crate::repo_access::{AccessViaGithub, AccessViaLocalGit, RustRepositoryAccessor};
31
use crate::toolchains::{
32
- DownloadParams, InstallError, NIGHTLY_SERVER, TestOutcome, Toolchain, ToolchainSpec,
33
- YYYY_MM_DD, download_progress, parse_to_utc_date,
+ download_progress, parse_to_utc_date, DownloadParams, InstallError, TestOutcome, Toolchain,
+ ToolchainSpec, NIGHTLY_SERVER, YYYY_MM_DD,
34
};
35
36
#[derive(Debug, Clone, PartialEq)]
src/repo_access.rs
@@ -1,6 +1,6 @@
use anyhow::Context;
-use crate::{Bound, Commit, GitDate, git, github};
+use crate::{git, github, Bound, Commit, GitDate};
pub(crate) trait RustRepositoryAccessor {
/// Maps `bound` to its associated date, looking up its commit if necessary.
0 commit comments