mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-17 05:25:37 +03:00
fbf3b8ab8e
Add Cow<str> -> Box<Error> impls. Considering how impls exist for `String` and `&str`, it makes sense to also add an impl for `Cow<str>` as well. This would allow converting `String::from_utf8_lossy` directly into a `Box<Error>` or `io::Error` without having to add an extra `into_ownd()`.