string icon indicating copy to clipboard operation
string copied to clipboard

Switch to stable TryInto/TryFrom traits

Open Diggsey opened this issue 5 years ago • 1 comments

Diggsey avatar Feb 26 '20 15:02 Diggsey

The simple approach to this seems to run into coherence trouble:

error[E0119]: conflicting implementations of trait `std::convert::TryFrom<_>` for type `String<_>`:
   --> src/lib.rs:218:1
    |
218 | / impl<T> TryFrom<T> for String<T>
219 | | where
220 | |     T: AsRef<[u8]> + StableAsRef,
221 | | {
...   |
227 | |     }
228 | | }
    | |_^
    |
    = note: conflicting implementation in crate `core`:
            - impl<T, U> std::convert::TryFrom<U> for T
              where U: std::convert::Into<T>;

djc avatar May 26 '20 18:05 djc