We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
PanicMessage::into_string
1 parent d877cdc commit 253c2a7Copy full SHA for 253c2a7
1 file changed
crates/proc-macro-srv/src/dylib/proc_macros.rs
@@ -7,7 +7,7 @@ pub(crate) struct ProcMacros([bridge::client::ProcMacro]);
7
8
impl From<bridge::PanicMessage> for crate::PanicMessage {
9
fn from(p: bridge::PanicMessage) -> Self {
10
- Self { message: p.as_str().map(|s| s.to_owned()) }
+ Self { message: p.into_string() }
11
}
12
13
0 commit comments