File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -114,9 +114,8 @@ impl LogViewerApp {
114
114
. rows ( )
115
115
. iter ( )
116
116
. map ( |x| {
117
- ( 1f32 ) . max (
118
- x. field_value ( "msg" ) . display ( ) . lines ( ) . count ( ) as f32 * text_height,
119
- )
117
+ ( 1f32 ) . max ( x. field_value ( "msg" ) . display ( ) . lines ( ) . count ( ) as f32 )
118
+ * text_height
120
119
} )
121
120
. collect ( ) ;
122
121
body. heterogeneous_rows ( heights. into_iter ( ) , |mut row| {
@@ -217,7 +216,7 @@ impl LogViewerApp {
217
216
// TODO 3: Figure out if calculating these values only once is worth it.
218
217
let heights: Vec < f32 > = selected_values
219
218
. iter ( )
220
- . map ( |x| ( 1f32 ) . max ( x. 1 . lines ( ) . count ( ) as f32 * text_height) )
219
+ . map ( |x| ( 1f32 ) . max ( x. 1 . lines ( ) . count ( ) as f32 ) * text_height)
221
220
. collect ( ) ;
222
221
body. heterogeneous_rows ( heights. iter ( ) . cloned ( ) , |mut row| {
223
222
let row_index = row. index ( ) ;
You can’t perform that action at this time.
0 commit comments