deny clippy::indexing_slicing

This commit is contained in:
Eugene Pankov 2022-07-23 21:53:21 +02:00
parent 9d1f1b3c26
commit bf50b7b257
No known key found for this signature in database
GPG key ID: 5896FCBBDD1CF4F4
3 changed files with 3 additions and 3 deletions

View file

@ -3,6 +3,5 @@ deny = [
"clippy::unwrap_used", "clippy::unwrap_used",
"clippy::expect_used", "clippy::expect_used",
"clippy::panic", "clippy::panic",
# "clippy::indexing_slicing", "clippy::indexing_slicing",
# "clippy::integer_arithmetic",
] ]

View file

@ -1,4 +1,4 @@
#![allow(dead_code)] #![allow(dead_code, clippy::indexing_slicing)]
pub mod io; pub mod io;
pub mod mysql; pub mod mysql;

View file

@ -35,6 +35,7 @@ impl ServiceOutput {
_ = tokio::time::sleep(std::time::Duration::from_millis(100)) => { _ = tokio::time::sleep(std::time::Duration::from_millis(100)) => {
if progress_visible.load(std::sync::atomic::Ordering::Relaxed) { if progress_visible.load(std::sync::atomic::Ordering::Relaxed) {
tick_index = (tick_index + 1) % ticks.len(); tick_index = (tick_index + 1) % ticks.len();
#[allow(clippy::indexing_slicing)]
let tick = ticks[tick_index]; let tick = ticks[tick_index];
let badge = Colour::Black.on(Colour::Blue).paint(format!(" {} Warpgate connecting ", tick)); let badge = Colour::Black.on(Colour::Blue).paint(format!(" {} Warpgate connecting ", tick));
let output = format!("{ERASE_PROGRESS_SPINNER}{badge}"); let output = format!("{ERASE_PROGRESS_SPINNER}{badge}");