mirror of
https://github.com/warp-tech/warpgate.git
synced 2024-09-20 06:46:17 +08:00
deny clippy::indexing_slicing
This commit is contained in:
parent
9d1f1b3c26
commit
bf50b7b257
|
@ -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",
|
|
||||||
]
|
]
|
||||||
|
|
|
@ -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;
|
||||||
|
|
||||||
|
|
|
@ -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}");
|
||||||
|
|
Loading…
Reference in a new issue