diff --git a/tests/tests/ui/not_valuable.stderr b/tests/tests/ui/not_valuable.stderr index 6d36011..1e935c1 100644 --- a/tests/tests/ui/not_valuable.stderr +++ b/tests/tests/ui/not_valuable.stderr @@ -11,11 +11,11 @@ error[E0277]: the trait bound `S: Valuable` is not satisfied &T &[T] &mut T - &std::path::Path &str () (T0, T1) (T0, T1, T2) + (T0, T1, T2, T3) and $N others = note: required for `Option` to implement `Valuable` @@ -31,11 +31,11 @@ error[E0277]: the trait bound `S: Valuable` is not satisfied &T &[T] &mut T - &std::path::Path &str () (T0, T1) (T0, T1, T2) + (T0, T1, T2, T3) and $N others = note: required for `Option` to implement `Valuable` @@ -52,11 +52,11 @@ error[E0277]: the trait bound `S: Valuable` is not satisfied &T &[T] &mut T - &std::path::Path &str () (T0, T1) (T0, T1, T2) + (T0, T1, T2, T3) and $N others = note: required for `Option` to implement `Valuable` = note: 1 redundant requirement hidden @@ -75,11 +75,11 @@ error[E0277]: the trait bound `S: Valuable` is not satisfied &T &[T] &mut T - &std::path::Path &str () (T0, T1) (T0, T1, T2) + (T0, T1, T2, T3) and $N others = note: required for `Option` to implement `Valuable` = note: 1 redundant requirement hidden diff --git a/valuable/src/valuable.rs b/valuable/src/valuable.rs index e8fa5dd..28ade75 100644 --- a/valuable/src/valuable.rs +++ b/valuable/src/valuable.rs @@ -299,7 +299,7 @@ impl Valuable for alloc::string::String { } #[cfg(feature = "std")] -impl Valuable for &std::path::Path { +impl Valuable for std::path::Path { fn as_value(&self) -> Value<'_> { Value::Path(self) }