--- a/crates/jrsonnet-interner/src/lib.rs +++ b/crates/jrsonnet-interner/src/lib.rs @@ -200,6 +200,11 @@ s.as_str().into() } } +impl From<&String> for IStr { + fn from(s: &String) -> Self { + s.as_str().into() + } +} impl From<&[u8]> for IBytes { fn from(v: &[u8]) -> Self { intern_bytes(v) --- a/crates/jrsonnet-macros/src/lib.rs +++ b/crates/jrsonnet-macros/src/lib.rs @@ -121,7 +121,6 @@ is_option: bool, name: Option, cfg_attrs: Vec, - // ident: Ident, }, Lazy { is_option: bool, @@ -446,9 +445,6 @@ break; } } - // input.parse::()?; - // input.parse::()?; - // let rename = input.parse::()?.value(); Ok(out) } }