]> git.lizzy.rs Git - rust.git/commitdiff
Rollup merge of #44466 - clarcharr:cow_error, r=alexcrichton
authorAlex Crichton <alex@alexcrichton.com>
Mon, 18 Sep 2017 16:04:20 +0000 (11:04 -0500)
committerGitHub <noreply@github.com>
Mon, 18 Sep 2017 16:04:20 +0000 (11:04 -0500)
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()`.


Trivial merge