@@ -22,26 +22,26 @@ pub fn struct_def(
2222) -> std:: fmt:: Result {
2323 write ! (
2424 f,
25- r# "/// {}
25+ r"/// {}
2626///
2727/// Source: <{}>
28- #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)]"# ,
28+ #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)]" ,
2929 section. doc,
3030 section. url. unwrap( ) ,
3131 ) ?;
3232
3333 if !is_exhaustive {
3434 write ! (
3535 f,
36- r# "
37- #[non_exhaustive]"#
36+ r"
37+ #[non_exhaustive]"
3838 ) ?;
3939 }
4040
4141 write ! (
4242 f,
43- r# "
44- pub enum {} {{"# ,
43+ r"
44+ pub enum {} {{" ,
4545 section. key,
4646 ) ?;
4747 for member in list {
@@ -72,9 +72,9 @@ pub fn display_impl(
7272) -> std:: fmt:: Result {
7373 write ! (
7474 f,
75- r# "impl core::fmt::Display for {} {{
75+ r"impl core::fmt::Display for {} {{
7676 fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result {{
77- match self {{"# ,
77+ match self {{" ,
7878 section. key,
7979 ) ?;
8080
@@ -97,10 +97,10 @@ pub fn display_impl(
9797
9898 writeln ! (
9999 f,
100- r# "
100+ r"
101101 }}
102102 }}
103- }}"# ,
103+ }}" ,
104104 )
105105}
106106
@@ -117,11 +117,11 @@ pub fn from_str_impl(
117117 } ;
118118 write ! (
119119 f,
120- r# "impl core::str::FromStr for {} {{
120+ r"impl core::str::FromStr for {} {{
121121 type Err = {err_ty};
122122
123123 fn from_str(s: &str) -> Result<Self, Self::Err> {{
124- match s {{"# ,
124+ match s {{" ,
125125 section. key,
126126 ) ?;
127127
@@ -137,23 +137,23 @@ pub fn from_str_impl(
137137 if is_exhaustive {
138138 write ! (
139139 f,
140- r# "
141- _ => Err(crate::ParseError::new()),"#
140+ r"
141+ _ => Err(crate::ParseError::new()),"
142142 ) ?;
143143 } else {
144144 write ! (
145145 f,
146- r# "
147- value => Ok(Self::Unknown(value.to_owned())),"# ,
146+ r"
147+ value => Ok(Self::Unknown(value.to_owned()))," ,
148148 ) ?;
149149 }
150150
151151 writeln ! (
152152 f,
153- r# "
153+ r"
154154 }}
155155 }}
156- }}"# ,
156+ }}" ,
157157 )
158158}
159159
@@ -179,22 +179,22 @@ impl schemars::JsonSchema for {} {{
179179 for member in list {
180180 write ! (
181181 f,
182- r# "
182+ r"
183183 // ---
184- schemars::schema::SchemaObject {{"# ,
184+ schemars::schema::SchemaObject {{" ,
185185 ) ?;
186186
187187 if let Some ( description) = & member. description {
188188 write ! (
189189 f,
190- r# "
190+ r"
191191 metadata: Some(Box::new(schemars::schema::Metadata {{
192192 description: Some(
193193 // ---
194194 {}.to_owned(),
195195 ),
196196 ..Default::default()
197- }})),"# ,
197+ }}))," ,
198198 raw_string( description) ,
199199 ) ?;
200200 }
@@ -212,7 +212,7 @@ impl schemars::JsonSchema for {} {{
212212
213213 writeln ! (
214214 f,
215- r# "
215+ r"
216216 ];
217217
218218 let description = {};
@@ -229,7 +229,7 @@ impl schemars::JsonSchema for {} {{
229229 }}
230230 .into()
231231 }}
232- }}"# ,
232+ }}" ,
233233 raw_string( section. doc) ,
234234 )
235235}
0 commit comments