Skip to content

Commit

Permalink
cleanup: remove imports that are unnecessary for edition 2021
Browse files Browse the repository at this point in the history
  • Loading branch information
arxanas committed May 12, 2024
1 parent 8aba1e7 commit ce1aa49
Show file tree
Hide file tree
Showing 17 changed files with 3 additions and 24 deletions.
1 change: 0 additions & 1 deletion git-branchless-invoke/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@

use std::any::Any;
use std::collections::HashMap;
use std::convert::TryInto;
use std::ffi::OsString;
use std::fmt::Write;
use std::path::PathBuf;
Expand Down
2 changes: 0 additions & 2 deletions git-branchless-lib/src/core/dag.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,8 @@

use std::cmp::Ordering;
use std::collections::HashMap;
use std::convert::TryFrom;
use std::fmt::Debug;
use std::future::Future;
use std::iter::FromIterator;
use std::sync::{Arc, Mutex};

use async_trait::async_trait;
Expand Down
1 change: 0 additions & 1 deletion git-branchless-lib/src/core/eventlog.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@

use std::cmp::Ordering;
use std::collections::{HashMap, HashSet};
use std::convert::{TryFrom, TryInto};

use std::fmt::Display;
use std::str::FromStr;
Expand Down
1 change: 0 additions & 1 deletion git-branchless-lib/src/core/node_descriptors.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
//! commit message.

use std::collections::{HashMap, HashSet};
use std::convert::TryInto;
use std::sync::{Arc, Mutex};
use std::time::SystemTime;

Expand Down
1 change: 0 additions & 1 deletion git-branchless-lib/src/git/oid.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
use std::convert::{TryFrom, TryInto};
use std::ffi::{OsStr, OsString};
use std::fmt::Display;
use std::str::FromStr;
Expand Down
1 change: 0 additions & 1 deletion git-branchless-lib/src/git/repo.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@

use std::borrow::Borrow;
use std::collections::{HashMap, HashSet};
use std::convert::{TryFrom, TryInto};
use std::num::TryFromIntError;
use std::ops::Add;
use std::path::{Path, PathBuf};
Expand Down
1 change: 0 additions & 1 deletion git-branchless-lib/src/git/run.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
use std::collections::HashMap;
use std::convert::TryInto;
use std::ffi::{OsStr, OsString};
use std::fmt::Write;
use std::io::{BufRead, BufReader, Read, Write as WriteIo};
Expand Down
2 changes: 0 additions & 2 deletions git-branchless-lib/src/git/tree.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
use std::collections::{HashMap, HashSet};
use std::convert::TryFrom;
use std::fmt::Debug;
use std::iter::FromIterator;
use std::path::{Path, PathBuf};

use bstr::ByteVec;
Expand Down
7 changes: 2 additions & 5 deletions git-branchless-lib/tests/test_git_tree.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
use std::{
collections::HashMap,
convert::TryInto,
path::{Path, PathBuf},
};
use std::collections::HashMap;
use std::path::{Path, PathBuf};

use branchless::git::{dehydrate_tree, get_changed_paths_between_trees, hydrate_tree, FileMode};
use branchless::testing::make_git;
Expand Down
1 change: 0 additions & 1 deletion git-branchless-move/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
#![allow(clippy::too_many_arguments, clippy::blocks_in_if_conditions)]

use std::collections::HashMap;
use std::convert::TryFrom;
use std::fmt::Write;
use std::time::SystemTime;

Expand Down
1 change: 0 additions & 1 deletion git-branchless-navigation/src/prompt.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ pub fn prompt_select_commit(
mod skim {
use eyre::eyre;
use std::borrow::Cow;
use std::convert::TryFrom;
use std::sync::Arc;

use itertools::Itertools;
Expand Down
1 change: 0 additions & 1 deletion git-branchless-revset/src/builtins.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ use lib::git::{
};
use std::borrow::Cow;
use std::collections::HashMap;
use std::convert::TryFrom;
use tracing::{instrument, warn};

use eyre::Context as EyreContext;
Expand Down
1 change: 0 additions & 1 deletion git-branchless-revset/src/pattern.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
use std::convert::TryFrom;
use std::fmt::Debug;
use std::sync::{Arc, Mutex};

Expand Down
2 changes: 0 additions & 2 deletions git-branchless-smartlog/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ use git_branchless_revset::resolve_commits;

mod graph {
use std::collections::HashMap;
use std::convert::TryFrom;

use lib::core::gc::mark_commit_reachable;
use tracing::instrument;
Expand Down Expand Up @@ -377,7 +376,6 @@ mod graph {
mod render {
use std::cmp::Ordering;
use std::collections::HashSet;
use std::convert::TryFrom;

use cursive_core::theme::{BaseColor, Effect};
use cursive_core::utils::markup::StyledString;
Expand Down
1 change: 0 additions & 1 deletion git-branchless-test/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
mod worker;

use std::collections::{HashMap, HashSet};
use std::convert::TryFrom;
use std::fmt::Write as _;
use std::fs::File;
use std::path::{Path, PathBuf};
Expand Down
2 changes: 1 addition & 1 deletion git-branchless/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ categories = ["command-line-utilities", "development-tools"]
default-run = "git-branchless"
description = "Branchless workflow for Git"
documentation = "https://github.com/arxanas/git-branchless/wiki"
edition = "2018"
edition = "2021"
homepage = "https://github.com/arxanas/git-branchless"
keywords = ["cli", "git"]
license = "MIT OR Apache-2.0"
Expand Down
1 change: 0 additions & 1 deletion git-branchless/src/commands/wrap.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
//! Wrap a user-provided Git command, so that `git-branchless` can do special
//! processing.

use std::convert::TryInto;
use std::process::Command;
use std::time::SystemTime;

Expand Down

0 comments on commit ce1aa49

Please sign in to comment.