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 9f1fe99 commit c4a47e1Copy full SHA for c4a47e1
1 file changed
autorust/codegen/src/config_parser.rs
@@ -186,8 +186,11 @@ mod literate_config {
186
// from https://github.com/kivikakk/comrak/blob/main/examples/headers.rs
187
fn collect_text<'a>(node: &'a AstNode<'a>, output: &mut String) {
188
match node.data.borrow().value {
189
- NodeValue::Text(ref literal) | NodeValue::Code(NodeCode { ref literal, .. }) => {
190
- output.push_str(literal)
+ NodeValue::Text(ref literal) => {
+ output.push_str(literal.as_ref())
191
+ }
192
+ NodeValue::Code(NodeCode { ref literal, .. }) => {
193
194
}
195
NodeValue::LineBreak | NodeValue::SoftBreak => output.push(' '),
196
_ => {
0 commit comments