fix
This commit is contained in:
+1
-1
@@ -339,7 +339,7 @@ fn extract_docstring(attrs: &[Attribute]) -> Option<String> {
|
|||||||
// Convert the attribute’s token stream back to source‑like text.
|
// Convert the attribute’s token stream back to source‑like text.
|
||||||
let text = attrs
|
let text = attrs
|
||||||
.iter()
|
.iter()
|
||||||
.map(|a| a.tokens.to_string())
|
.map(|a| a.to_token_stream().to_string())
|
||||||
.collect::<Vec<_>>()
|
.collect::<Vec<_>>()
|
||||||
.join("\n");
|
.join("\n");
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user