mirror of
https://github.com/nushell/nushell.git
synced 2025-08-11 13:04:39 +02:00
fix: clippy warnings with --all-features
(#15035)
# Description Some more `cargo clippy --all-features` warnings from rust toolchain 1.84.1 that I forgot to fix in #14984
This commit is contained in:
@ -84,7 +84,7 @@ impl<'a> PluginExecutionCommandContext<'a> {
|
||||
}
|
||||
}
|
||||
|
||||
impl<'a> PluginExecutionContext for PluginExecutionCommandContext<'a> {
|
||||
impl PluginExecutionContext for PluginExecutionCommandContext<'_> {
|
||||
fn span(&self) -> Span {
|
||||
self.call.head
|
||||
}
|
||||
|
@ -5,7 +5,7 @@ pub enum MutableCow<'a, T> {
|
||||
Owned(T),
|
||||
}
|
||||
|
||||
impl<'a, T: Clone> MutableCow<'a, T> {
|
||||
impl<T: Clone> MutableCow<'_, T> {
|
||||
pub fn owned(&self) -> MutableCow<'static, T> {
|
||||
match self {
|
||||
MutableCow::Borrowed(r) => MutableCow::Owned((*r).clone()),
|
||||
@ -14,7 +14,7 @@ impl<'a, T: Clone> MutableCow<'a, T> {
|
||||
}
|
||||
}
|
||||
|
||||
impl<'a, T> std::ops::Deref for MutableCow<'a, T> {
|
||||
impl<T> std::ops::Deref for MutableCow<'_, T> {
|
||||
type Target = T;
|
||||
|
||||
fn deref(&self) -> &T {
|
||||
@ -25,7 +25,7 @@ impl<'a, T> std::ops::Deref for MutableCow<'a, T> {
|
||||
}
|
||||
}
|
||||
|
||||
impl<'a, T> std::ops::DerefMut for MutableCow<'a, T> {
|
||||
impl<T> std::ops::DerefMut for MutableCow<'_, T> {
|
||||
fn deref_mut(&mut self) -> &mut Self::Target {
|
||||
match self {
|
||||
MutableCow::Borrowed(r) => r,
|
||||
|
Reference in New Issue
Block a user