mirror of
https://github.com/uutils/coreutils
synced 2024-12-04 18:39:52 +00:00
uudoc,chcon: fix needless_lifetimes warnings
This commit is contained in:
parent
79f991dd05
commit
865da0caad
2 changed files with 2 additions and 2 deletions
|
@ -172,7 +172,7 @@ struct MDWriter<'a, 'b> {
|
|||
markdown: Option<String>,
|
||||
}
|
||||
|
||||
impl<'a, 'b> MDWriter<'a, 'b> {
|
||||
impl MDWriter<'_, '_> {
|
||||
/// # Errors
|
||||
/// Returns an error if the writer fails.
|
||||
fn markdown(&mut self) -> io::Result<()> {
|
||||
|
|
|
@ -777,7 +777,7 @@ enum SELinuxSecurityContext<'t> {
|
|||
String(Option<CString>),
|
||||
}
|
||||
|
||||
impl<'t> SELinuxSecurityContext<'t> {
|
||||
impl SELinuxSecurityContext<'_> {
|
||||
fn to_c_string(&self) -> Result<Option<Cow<CStr>>> {
|
||||
match self {
|
||||
Self::File(context) => context
|
||||
|
|
Loading…
Reference in a new issue