File tree Expand file tree Collapse file tree 3 files changed +5
-2
lines changed
Expand file tree Collapse file tree 3 files changed +5
-2
lines changed Original file line number Diff line number Diff line change 2828 clippy:: cfg_not_test,
2929 clippy:: clear_with_drain,
3030 clippy:: clone_on_ref_ptr,
31+ clippy:: coerce_container_to_any,
3132 clippy:: collection_is_never_read,
3233 clippy:: create_dir,
3334 clippy:: dbg_macro,
Original file line number Diff line number Diff line change 2929 clippy:: cfg_not_test,
3030 clippy:: clear_with_drain,
3131 clippy:: clone_on_ref_ptr,
32+ clippy:: coerce_container_to_any,
3233 clippy:: collection_is_never_read,
3334 clippy:: create_dir,
3435 clippy:: dbg_macro,
Original file line number Diff line number Diff line change @@ -1016,9 +1016,10 @@ impl<Out: io::Write> Basic<Out> {
10161016/// [`catch_unwind()`]: std::panic::catch_unwind()
10171017#[ must_use]
10181018pub ( crate ) fn coerce_error ( err : & Info ) -> Cow < ' static , str > {
1019- err. downcast_ref :: < String > ( )
1019+ ( * * err)
1020+ . downcast_ref :: < String > ( )
10201021 . map ( |s| s. clone ( ) . into ( ) )
1021- . or_else ( || err. downcast_ref :: < & str > ( ) . map ( |s| s. to_owned ( ) . into ( ) ) )
1022+ . or_else ( || ( * * err) . downcast_ref :: < & str > ( ) . map ( |s| s. to_owned ( ) . into ( ) ) )
10221023 . unwrap_or_else ( || "(Could not resolve panic payload)" . into ( ) )
10231024}
10241025
You can’t perform that action at this time.
0 commit comments