@@ -71,31 +71,39 @@ unsafe fn emit_backtrace_by_frames(
71
71
}
72
72
if resolve_frames == StacktraceCollection :: EnabledWithInprocessSymbols {
73
73
backtrace:: resolve_frame_unsynchronized ( frame, |symbol| {
74
+ #[ allow( clippy:: unwrap_used) ]
74
75
write ! ( w, "{{" ) . unwrap ( ) ;
75
76
#[ allow( clippy:: unwrap_used) ]
76
77
emit_absolute_addresses ( w, frame) . unwrap ( ) ;
77
78
if let Some ( column) = symbol. colno ( ) {
79
+ #[ allow( clippy:: unwrap_used) ]
78
80
write ! ( w, ", \" column\" : {column}" ) . unwrap ( ) ;
79
81
}
80
82
if let Some ( file) = symbol. filename ( ) {
81
83
// The debug printer for path already wraps it in `"` marks.
84
+ #[ allow( clippy:: unwrap_used) ]
82
85
write ! ( w, ", \" file\" : {file:?}" ) . unwrap ( ) ;
83
86
}
84
87
if let Some ( function) = symbol. name ( ) {
88
+ #[ allow( clippy:: unwrap_used) ]
85
89
write ! ( w, ", \" function\" : \" {function}\" " ) . unwrap ( ) ;
86
90
}
87
91
if let Some ( line) = symbol. lineno ( ) {
92
+ #[ allow( clippy:: unwrap_used) ]
88
93
write ! ( w, ", \" line\" : {line}" ) . unwrap ( ) ;
89
94
}
95
+ #[ allow( clippy:: unwrap_used) ]
90
96
writeln ! ( w, "}}" ) . unwrap ( ) ;
91
97
// Flush eagerly to ensure that each frame gets emitted even if the next one fails
92
98
#[ allow( clippy:: unwrap_used) ]
93
99
w. flush ( ) . unwrap ( ) ;
94
100
} ) ;
95
101
} else {
102
+ #[ allow( clippy:: unwrap_used) ]
96
103
write ! ( w, "{{" ) . unwrap ( ) ;
97
104
#[ allow( clippy:: unwrap_used) ]
98
105
emit_absolute_addresses ( w, frame) . unwrap ( ) ;
106
+ #[ allow( clippy:: unwrap_used) ]
99
107
writeln ! ( w, "}}" ) . unwrap ( ) ;
100
108
// Flush eagerly to ensure that each frame gets emitted even if the next one fails
101
109
#[ allow( clippy:: unwrap_used) ]
0 commit comments