Skip to content

Commit af03832

Browse files
committed
thanks clippy
1 parent 2bf1e5f commit af03832

File tree

121 files changed

+252
-251
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

121 files changed

+252
-251
lines changed

Cargo.lock

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

gitoxide-core/src/hours/util.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ pub struct WorkByPerson {
1414
pub lines: LineStats,
1515
}
1616

17-
impl<'a> WorkByPerson {
18-
pub fn merge(&mut self, other: &'a WorkByEmail) {
17+
impl WorkByPerson {
18+
pub fn merge(&mut self, other: &WorkByEmail) {
1919
if !self.name.contains(&other.name) {
2020
self.name.push(other.name);
2121
}

gitoxide-core/src/query/engine/update.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,7 @@ pub fn update(
369369
}
370370
}
371371

372-
impl<'a, Find> gix::prelude::Find for Db<'a, Find>
372+
impl<Find> gix::prelude::Find for Db<'_, Find>
373373
where
374374
Find: gix::prelude::Find + Clone,
375375
{

gitoxide-core/src/repository/revision/explain.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ impl<'a> Explain<'a> {
5555
}
5656
}
5757

58-
impl<'a> delegate::Revision for Explain<'a> {
58+
impl delegate::Revision for Explain<'_> {
5959
fn find_ref(&mut self, name: &BStr) -> Option<()> {
6060
self.prefix()?;
6161
self.ref_name = Some(name.into());
@@ -121,7 +121,7 @@ impl<'a> delegate::Revision for Explain<'a> {
121121
}
122122
}
123123

124-
impl<'a> delegate::Navigate for Explain<'a> {
124+
impl delegate::Navigate for Explain<'_> {
125125
fn traverse(&mut self, kind: Traversal) -> Option<()> {
126126
self.prefix()?;
127127
let name = self.revision_name();
@@ -194,7 +194,7 @@ impl<'a> delegate::Navigate for Explain<'a> {
194194
}
195195
}
196196

197-
impl<'a> delegate::Kind for Explain<'a> {
197+
impl delegate::Kind for Explain<'_> {
198198
fn kind(&mut self, kind: spec::Kind) -> Option<()> {
199199
self.prefix()?;
200200
self.call = 0;
@@ -215,7 +215,7 @@ impl<'a> delegate::Kind for Explain<'a> {
215215
}
216216
}
217217

218-
impl<'a> Delegate for Explain<'a> {
218+
impl Delegate for Explain<'_> {
219219
fn done(&mut self) {
220220
if !self.has_implicit_anchor && self.ref_name.is_none() && self.oid_prefix.is_none() {
221221
self.err = Some("Incomplete specification lacks its anchor, like a reference or object name".into());

gitoxide-core/src/repository/tree.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ mod entries {
6565
}
6666
}
6767

68-
impl<'repo, 'a> gix::traverse::tree::Visit for Traverse<'repo, 'a> {
68+
impl gix::traverse::tree::Visit for Traverse<'_, '_> {
6969
fn pop_front_tracked_path_and_set_current(&mut self) {
7070
self.path = self.path_deque.pop_front().expect("every parent is set only once");
7171
}

gix-actor/src/identity.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ mod write {
4040
}
4141
}
4242

43-
impl<'a> IdentityRef<'a> {
43+
impl IdentityRef<'_> {
4444
/// Serialize this instance to `out` in the git serialization format for signatures (but without timestamp).
4545
pub fn write_to(&self, out: &mut dyn std::io::Write) -> std::io::Result<()> {
4646
out.write_all(validated_token(self.name)?)?;

gix-actor/src/signature/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ pub(crate) mod write {
104104
}
105105
}
106106

107-
impl<'a> SignatureRef<'a> {
107+
impl SignatureRef<'_> {
108108
/// Serialize this instance to `out` in the git serialization format for actors.
109109
pub fn write_to(&self, out: &mut dyn std::io::Write) -> std::io::Result<()> {
110110
out.write_all(validated_token(self.name)?)?;

gix-attributes/src/name.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ use crate::{Name, NameRef};
22
use bstr::{BStr, BString, ByteSlice};
33
use kstring::KStringRef;
44

5-
impl<'a> NameRef<'a> {
5+
impl NameRef<'_> {
66
/// Turn this ref into its owned counterpart.
77
pub fn to_owned(self) -> Name {
88
Name(self.0.into())

gix-attributes/src/state.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ impl<'a> StateRef<'a> {
9696
}
9797

9898
/// Access
99-
impl<'a> StateRef<'a> {
99+
impl StateRef<'_> {
100100
/// Turn ourselves into our owned counterpart.
101101
pub fn to_owned(self) -> State {
102102
self.into()

gix-commitgraph/src/file/commit.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ impl<'a> Commit<'a> {
106106
}
107107
}
108108

109-
impl<'a> Debug for Commit<'a> {
109+
impl Debug for Commit<'_> {
110110
fn fmt(&self, f: &mut Formatter<'_>) -> std::fmt::Result {
111111
write!(
112112
f,
@@ -121,9 +121,9 @@ impl<'a> Debug for Commit<'a> {
121121
}
122122
}
123123

124-
impl<'a> Eq for Commit<'a> {}
124+
impl Eq for Commit<'_> {}
125125

126-
impl<'a> PartialEq for Commit<'a> {
126+
impl PartialEq for Commit<'_> {
127127
fn eq(&self, other: &Self) -> bool {
128128
std::ptr::eq(self.file, other.file) && self.pos == other.pos
129129
}
@@ -135,7 +135,7 @@ pub struct Parents<'a> {
135135
state: ParentIteratorState<'a>,
136136
}
137137

138-
impl<'a> Iterator for Parents<'a> {
138+
impl Iterator for Parents<'_> {
139139
type Item = Result<Position, Error>;
140140

141141
fn next(&mut self) -> Option<Self::Item> {

0 commit comments

Comments
 (0)