File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ impl TryFrom<String> for SchemaVersion {
3535 }
3636}
3737
38- impl < ' a > From < SchemaVersion > for & ' a str {
38+ impl From < SchemaVersion > for & str {
3939 fn from ( _: SchemaVersion ) -> Self {
4040 SCHEMA_VERSION
4141 }
Original file line number Diff line number Diff line change @@ -121,7 +121,7 @@ where
121121 for excluded_row_index in excluded_row_indices. iter ( ) . copied ( ) {
122122 let is_child = |row : & & TreeRow < & Name , Size > | {
123123 row. parent ( )
124- . map_or ( false , |node_info| node_info. row_index == excluded_row_index)
124+ . is_some_and ( |node_info| node_info. row_index == excluded_row_index)
125125 } ;
126126 intermediate_table
127127 . index ( excluded_row_index..)
@@ -167,7 +167,7 @@ where
167167 {
168168 let is_sibling = |row : & & TreeRow < & Name , Size > | {
169169 row. parent ( )
170- . map_or ( false , |parent| parent. row_index == parent_row_index)
170+ . is_some_and ( |parent| parent. row_index == parent_row_index)
171171 } ;
172172 let is_excluded =
173173 |row : & TreeRow < & Name , Size > | excluded_row_indices. contains ( & row. row_index ) ;
Original file line number Diff line number Diff line change @@ -144,6 +144,11 @@ fn json_input() {
144144
145145#[ test]
146146fn json_output_json_input ( ) {
147+ #![ allow(
148+ clippy:: zombie_processes,
149+ reason = "can't wait without violating borrow rule"
150+ ) ]
151+
147152 let workspace = SampleWorkspace :: default ( ) ;
148153
149154 let json_output = Command :: new ( PDU )
You can’t perform that action at this time.
0 commit comments