We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 08a8192 commit 2187c4bCopy full SHA for 2187c4b
src/lib.rs
@@ -220,8 +220,8 @@ impl From<String> for Key {
220
}
221
222
223
-impl From<&str> for Key {
224
- fn from(v: &str) -> Key {
+impl From<&'static str> for Key {
+ fn from(v: &'static str) -> Key {
225
Key(v.as_bytes().to_vec())
226
227
@@ -334,8 +334,8 @@ impl From<String> for Value {
334
335
336
337
-impl From<&str> for Value {
338
- fn from(v: &str) -> Value {
+impl From<&'static str> for Value {
+ fn from(v: &'static str) -> Value {
339
Value(v.as_bytes().to_vec())
340
341
0 commit comments