git.delta.rocks / jrsonnet / refs/commits / 3490ff65c93a

difftreelog

style remove unused code

Yaroslav Bolyukin2022-11-09parent: #b9857ae.patch.diff
in: master

2 files changed

modifiedcrates/jrsonnet-interner/src/lib.rsdiffbeforeafterboth
--- 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)
modifiedcrates/jrsonnet-macros/src/lib.rsdiffbeforeafterboth
121 is_option: bool,121 is_option: bool,
122 name: Option<String>,122 name: Option<String>,
123 cfg_attrs: Vec<Attribute>,123 cfg_attrs: Vec<Attribute>,
124 // ident: Ident,
125 },124 },
126 Lazy {125 Lazy {
127 is_option: bool,126 is_option: bool,
446 break;445 break;
447 }446 }
448 }447 }
449 // input.parse::<kw::rename>()?;
450 // input.parse::<Token![=]>()?;
451 // let rename = input.parse::<LitStr>()?.value();
452 Ok(out)448 Ok(out)
453 }449 }
454}450}