You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently EnvironmentItem has a blanket impl for (T, T) where T: ToString. Unfortunately this doesn't cover (OsString, OsString), because OsString doesn't impl Display! I ran into this trying to convert some tests I have in sccache to use assert_cli.
The text was updated successfully, but these errors were encountered:
Unfortunately doing the obvious thing here doesn't work:
error[E0119]: conflicting implementations of trait `EnvironmentItem` for type `(std::ffi::OsString, std::ffi::OsString)`:
--> src/lib.rs:248:1
|
236 | impl EnvironmentItem for (OsString, OsString) {
| --------------------------------------------- first implementation here
...
248 | impl<T: ToString, Z: ToString> EnvironmentItem for (T, Z) {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ conflicting implementation for `(std::ffi::OsString, std::ffi::OsString)`
|
= note: upstream crates may add new impl of trait `std::fmt::Display` for type `std::ffi::OsString` in future versions
Currently
EnvironmentItem
has a blanket impl for(T, T)
whereT: ToString
. Unfortunately this doesn't cover(OsString, OsString)
, becauseOsString
doesn't implDisplay
! I ran into this trying to convert some tests I have in sccache to useassert_cli
.The text was updated successfully, but these errors were encountered: