Mercurial > crates > systemd-socket
changeset 9:4fb70ca820a6
Upgrade serde_str_helpers
This upgrade supports direct conversion to `String`, which looks nicer.
author | Martin Habovstiak <martin.habovstiak@gmail.com> |
---|---|
date | Sat, 28 Nov 2020 15:47:47 +0100 |
parents | 372afb9a700f |
children | c9f42be465ca |
files | Cargo.toml src/lib.rs |
diffstat | 2 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/Cargo.toml Fri Nov 27 16:33:47 2020 +0100 +++ b/Cargo.toml Sat Nov 28 15:47:47 2020 +0100 @@ -15,7 +15,7 @@ [dependencies] thiserror = "1.0.22" serde_crate = { package = "serde", version = "1.0.117", optional = true, features = ["derive"] } -serde_str_helpers = { version = "0.1.0", optional = true } +serde_str_helpers = { version = "0.1.2", optional = true } parse_arg = { version = "0.1.4", optional = true } lazy_static = "1.4.0" tokio_0_2 = { package = "tokio", version = "0.2", optional = true, features = ["tcp", "dns"] }
--- a/src/lib.rs Fri Nov 27 16:33:47 2020 +0100 +++ b/src/lib.rs Sat Nov 28 15:47:47 2020 +0100 @@ -351,7 +351,7 @@ type Error = ParseError; fn try_from(s: serde_str_helpers::DeserBorrowStr<'a>) -> Result<Self, Self::Error> { - SocketAddr::try_from_generic(std::borrow::Cow::from(s)) + SocketAddr::try_from_generic(s) } }