Skip to content

Commit 253c2a7

Browse files
committed
add and use PanicMessage::into_string
1 parent d877cdc commit 253c2a7

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)