Skip to content

Commit 53df1dd

Browse files
Rollup merge of #155311 - cyrgani:expand-clean, r=Kivooeo,petrochenkov
various small `rustc_expand` cleanups Each commit should be reviewable on its own.
2 parents e69a2a9 + 253c2a7 commit 53df1dd

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

crates/proc-macro-srv/src/dylib/proc_macros.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ pub(crate) struct ProcMacros([bridge::client::ProcMacro]);
77

88
impl From<bridge::PanicMessage> for crate::PanicMessage {
99
fn from(p: bridge::PanicMessage) -> Self {
10-
Self { message: p.as_str().map(|s| s.to_owned()) }
10+
Self { message: p.into_string() }
1111
}
1212
}
1313

0 commit comments

Comments
 (0)