projects
/
rust-lightning
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add derives where they make sense and the bindings require them
[rust-lightning]
/
lightning
/
src
/
sync
/
debug_sync.rs
diff --git
a/lightning/src/sync/debug_sync.rs
b/lightning/src/sync/debug_sync.rs
index 2b75e095380ec09f22d07d4d1bd636dd93e53c61..5968a79ee4daa50439a3cac96478c49d3803458b 100644
(file)
--- a/
lightning/src/sync/debug_sync.rs
+++ b/
lightning/src/sync/debug_sync.rs
@@
-103,7
+103,9
@@
fn locate_call_symbol(backtrace: &Backtrace) -> (String, Option<u32>) {
}
}
}
}
}
}
- let symbol = symbol_after_latest_debug_sync.expect("Couldn't find lock call symbol");
+ let symbol = symbol_after_latest_debug_sync.unwrap_or_else(|| {
+ panic!("Couldn't find lock call symbol in trace {:?}", backtrace);
+ });
(format!("{}:{}", symbol.filename().unwrap().display(), symbol.lineno().unwrap()), symbol.colno())
}
(format!("{}:{}", symbol.filename().unwrap().display(), symbol.lineno().unwrap()), symbol.colno())
}