Skip to content

Commit 37fb0a0

Browse files
authored
Merge pull request #6899 from cakebaker/clippy_fix_needless_lifetimes
uudoc,chcon: fix `needless_lifetimes` warnings
2 parents 2e8a759 + 865da0c commit 37fb0a0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/bin/uudoc.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ struct MDWriter<'a, 'b> {
172172
markdown: Option<String>,
173173
}
174174

175-
impl<'a, 'b> MDWriter<'a, 'b> {
175+
impl MDWriter<'_, '_> {
176176
/// # Errors
177177
/// Returns an error if the writer fails.
178178
fn markdown(&mut self) -> io::Result<()> {

src/uu/chcon/src/chcon.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -777,7 +777,7 @@ enum SELinuxSecurityContext<'t> {
777777
String(Option<CString>),
778778
}
779779

780-
impl<'t> SELinuxSecurityContext<'t> {
780+
impl SELinuxSecurityContext<'_> {
781781
fn to_c_string(&self) -> Result<Option<Cow<CStr>>> {
782782
match self {
783783
Self::File(context) => context

0 commit comments

Comments
 (0)