Skip to content

Commit b1ea7cc

Browse files
authored
Merge pull request #1024 from ehuss/redundant-import
Remove redundant imports.
2 parents 92d97f5 + d418516 commit b1ea7cc

11 files changed

+2
-13
lines changed

src/call.rs

-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
#![macro_use]
2-
use libc;
32

43
use crate::Error;
54

@@ -54,8 +53,6 @@ mod impls {
5453
use std::ffi::CString;
5554
use std::ptr;
5655

57-
use libc;
58-
5956
use crate::call::Convert;
6057
use crate::{raw, BranchType, ConfigLevel, Direction, ObjectType, ResetType};
6158
use crate::{

src/commit.rs

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
use libc;
21
use std::iter::FusedIterator;
32
use std::marker;
43
use std::mem;

src/config.rs

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
use libc;
21
use std::ffi::CString;
32
use std::marker;
43
use std::path::{Path, PathBuf};

src/cred.rs

-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ use std::mem;
55
use std::path::Path;
66
use std::process::{Command, Stdio};
77
use std::ptr;
8-
use url;
98

109
use crate::util::Binding;
1110
use crate::{raw, Config, Error, IntoCString};

src/oid.rs

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
use libc;
21
use std::cmp::Ordering;
32
use std::fmt;
43
use std::hash::{Hash, Hasher};

src/pathspec.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
use libc::size_t;
2-
use std::iter::{FusedIterator, IntoIterator};
2+
use std::iter::FusedIterator;
33
use std::marker;
44
use std::ops::Range;
55
use std::path::Path;

src/remote.rs

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
use libc;
21
use raw::git_strarray;
32
use std::iter::FusedIterator;
43
use std::marker;

src/repo.rs

-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
use libc::{c_char, c_int, c_uint, c_void, size_t};
22
use std::env;
33
use std::ffi::{CStr, CString, OsStr};
4-
use std::iter::IntoIterator;
54
use std::mem;
65
use std::path::{Path, PathBuf};
76
use std::ptr;

src/signature.rs

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
use libc;
21
use std::ffi::CString;
32
use std::fmt;
43
use std::marker;

src/tree.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
use libc::{self, c_char, c_int, c_void};
1+
use libc::{c_char, c_int, c_void};
22
use std::cmp::Ordering;
33
use std::ffi::{CStr, CString};
44
use std::iter::FusedIterator;

src/util.rs

-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
use libc::{c_char, c_int, size_t};
22
use std::cmp::Ordering;
33
use std::ffi::{CString, OsStr, OsString};
4-
use std::iter::IntoIterator;
54
use std::path::{Component, Path, PathBuf};
65

76
use crate::{raw, Error};

0 commit comments

Comments
 (0)