mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 11:37:44 +00:00
Merge pull request #6899 from cakebaker/clippy_fix_needless_lifetimes
uudoc,chcon: fix `needless_lifetimes` warnings
This commit is contained in:
commit
37fb0a02f8
2 changed files with 2 additions and 2 deletions
|
@ -172,7 +172,7 @@ struct MDWriter<'a, 'b> {
|
||||||
markdown: Option<String>,
|
markdown: Option<String>,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl<'a, 'b> MDWriter<'a, 'b> {
|
impl MDWriter<'_, '_> {
|
||||||
/// # Errors
|
/// # Errors
|
||||||
/// Returns an error if the writer fails.
|
/// Returns an error if the writer fails.
|
||||||
fn markdown(&mut self) -> io::Result<()> {
|
fn markdown(&mut self) -> io::Result<()> {
|
||||||
|
|
|
@ -777,7 +777,7 @@ enum SELinuxSecurityContext<'t> {
|
||||||
String(Option<CString>),
|
String(Option<CString>),
|
||||||
}
|
}
|
||||||
|
|
||||||
impl<'t> SELinuxSecurityContext<'t> {
|
impl SELinuxSecurityContext<'_> {
|
||||||
fn to_c_string(&self) -> Result<Option<Cow<CStr>>> {
|
fn to_c_string(&self) -> Result<Option<Cow<CStr>>> {
|
||||||
match self {
|
match self {
|
||||||
Self::File(context) => context
|
Self::File(context) => context
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue