diff options
| author | Max Audron <audron@cocaine.farm> | 2021-12-03 16:58:49 +0100 |
|---|---|---|
| committer | Max Audron <audron@cocaine.farm> | 2021-12-03 17:01:55 +0100 |
| commit | 15c8e45d0ea72b4d26497bad05de923dcf869713 (patch) | |
| tree | 91a04a9694ee377096e2240110cf459a96f100b2 /src/primitive/variant.rs | |
| parent | add identity impl (diff) | |
add ignorelistmanager impl
Diffstat (limited to 'src/primitive/variant.rs')
| -rw-r--r-- | src/primitive/variant.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/primitive/variant.rs b/src/primitive/variant.rs index 92e3211..3b41b7b 100644 --- a/src/primitive/variant.rs +++ b/src/primitive/variant.rs @@ -77,6 +77,12 @@ impl From<String> for Variant { } } +impl From<&str> for Variant { + fn from(input: &str) -> Self { + Self::String(input.to_owned()) + } +} + /// Implements the Network trait genericly for everything that /// can be a VariantList / Vec<T> impl<T> crate::message::Network for Vec<T> |
