switch to into_owned

pull/715/head
Addison Crump 2 years ago
parent 4da229e784
commit ed11eb1594
No known key found for this signature in database
GPG Key ID: D495C2DF24C779B2

@ -187,7 +187,7 @@ impl StackTrace {
/// them from debug info.
pub fn resolve<R: SymbolResolver>(&mut self, symbols: &R) -> &StackTrace {
for frame in self.frames.iter_mut() {
frame.symbol_name = symbols.resolve_symbol(frame.ip).map(|s| s.to_string())
frame.symbol_name = symbols.resolve_symbol(frame.ip).map(|s| s.into_owned())
}
self

Loading…
Cancel
Save