Skip to content

Commit 4ad07c3

Browse files
committed
cleanup: remove imports that are unnecessary for edition 2021
1 parent 6a38f31 commit 4ad07c3

File tree

17 files changed

+3
-24
lines changed

17 files changed

+3
-24
lines changed

git-branchless-invoke/src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515

1616
use std::any::Any;
1717
use std::collections::HashMap;
18-
use std::convert::TryInto;
1918
use std::ffi::OsString;
2019
use std::fmt::Write;
2120
use std::path::PathBuf;

git-branchless-lib/src/core/dag.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,8 @@
33
44
use std::cmp::Ordering;
55
use std::collections::HashMap;
6-
use std::convert::TryFrom;
76
use std::fmt::Debug;
87
use std::future::Future;
9-
use std::iter::FromIterator;
108
use std::sync::{Arc, Mutex};
119

1210
use async_trait::async_trait;

git-branchless-lib/src/core/eventlog.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
88
use std::cmp::Ordering;
99
use std::collections::{HashMap, HashSet};
10-
use std::convert::{TryFrom, TryInto};
1110

1211
use std::fmt::Display;
1312
use std::str::FromStr;

git-branchless-lib/src/core/node_descriptors.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
//! commit message.
55
66
use std::collections::{HashMap, HashSet};
7-
use std::convert::TryInto;
87
use std::sync::{Arc, Mutex};
98
use std::time::SystemTime;
109

git-branchless-lib/src/git/oid.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
use std::convert::{TryFrom, TryInto};
21
use std::ffi::{OsStr, OsString};
32
use std::fmt::Display;
43
use std::str::FromStr;

git-branchless-lib/src/git/repo.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
1212
use std::borrow::Borrow;
1313
use std::collections::{HashMap, HashSet};
14-
use std::convert::{TryFrom, TryInto};
1514
use std::num::TryFromIntError;
1615
use std::ops::Add;
1716
use std::path::{Path, PathBuf};

git-branchless-lib/src/git/run.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
use std::collections::HashMap;
2-
use std::convert::TryInto;
32
use std::ffi::{OsStr, OsString};
43
use std::fmt::Write;
54
use std::io::{BufRead, BufReader, Read, Write as WriteIo};

git-branchless-lib/src/git/tree.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
use std::collections::{HashMap, HashSet};
2-
use std::convert::TryFrom;
32
use std::fmt::Debug;
4-
use std::iter::FromIterator;
53
use std::path::{Path, PathBuf};
64

75
use bstr::ByteVec;

git-branchless-lib/tests/test_git_tree.rs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
1-
use std::{
2-
collections::HashMap,
3-
convert::TryInto,
4-
path::{Path, PathBuf},
5-
};
1+
use std::collections::HashMap;
2+
use std::path::{Path, PathBuf};
63

74
use branchless::git::{dehydrate_tree, get_changed_paths_between_trees, hydrate_tree, FileMode};
85
use branchless::testing::make_git;

git-branchless-move/src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
#![allow(clippy::too_many_arguments, clippy::blocks_in_if_conditions)]
1414

1515
use std::collections::HashMap;
16-
use std::convert::TryFrom;
1716
use std::fmt::Write;
1817
use std::time::SystemTime;
1918

0 commit comments

Comments
 (0)