Skip to content

Commit a8c6216

Browse files
committed
clippy: Ignore vec_init_then_push
We need to do it this way in this instance so that we can easily build with different features and the vector gets initialized properly, dynamically. Signed-off-by: Daniel Schaefer <dhs@frame.work>
1 parent 77114f7 commit a8c6216

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

  • framework_lib/src/chromium_ec

framework_lib/src/chromium_ec/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -227,6 +227,7 @@ impl Default for CrosEc {
227227
/// Find out which drivers are available
228228
///
229229
/// Depending on the availability we choose the first one as default
230+
#[allow(clippy::vec_init_then_push)]
230231
fn available_drivers() -> Vec<CrosEcDriverType> {
231232
let mut drivers = vec![];
232233

0 commit comments

Comments
 (0)