This commit is contained in:
2025-11-14 20:54:58 +00:00
parent aa9ef060e2
commit 81a0ff7e4e
+1 -1
View File
@@ -339,7 +339,7 @@ fn extract_docstring(attrs: &[Attribute]) -> Option<String> {
// Convert the attributes token stream back to sourcelike text.
let text = attrs
.iter()
.map(|a| a.tokens.to_string())
.map(|a| a.to_token_stream().to_string())
.collect::<Vec<_>>()
.join("\n");