Skip to content

Commit

Permalink
Remove fixed clippy allow
Browse files Browse the repository at this point in the history
  • Loading branch information
Celeo committed Oct 14, 2024
1 parent 2444e6c commit cbbb2c3
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 4 deletions.
1 change: 0 additions & 1 deletion vzdv-bot/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ fn bot_id_from_token(token: &str) -> u64 {
}

/// Entrypoint.
#[allow(clippy::needless_return)] // https://github.com/rust-lang/rust-clippy/issues/13458
#[tokio::main]
async fn main() {
let cli = Cli::parse();
Expand Down
1 change: 0 additions & 1 deletion vzdv-site/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,6 @@ async fn shutdown_signal() {
}

/// Entrypoint.
#[allow(clippy::needless_return)] // https://github.com/rust-lang/rust-clippy/issues/13458
#[tokio::main]
async fn main() {
let cli = Cli::parse();
Expand Down
3 changes: 1 addition & 2 deletions vzdv-tasks/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ async fn update_activity(config: &Config, db: &SqlitePool) -> Result<()> {
.format("%Y-%m-%d")
.to_string();
for row in controllers {
let cid: u32 = row.try_get("cid")?;
let cid: u32 = row.try_get("cid").expect("no 'cid' column");
debug!("Getting activity for {cid}");
if let Err(e) = update_single_activity(config, db, &five_months_ago, cid).await {
error!("Error updating activity for {cid}: {e}");
Expand All @@ -251,7 +251,6 @@ async fn update_activity(config: &Config, db: &SqlitePool) -> Result<()> {
}

/// Entrypoint.
#[allow(clippy::needless_return)] // https://github.com/rust-lang/rust-clippy/issues/13458
#[tokio::main]
async fn main() {
let cli = Cli::parse();
Expand Down

0 comments on commit cbbb2c3

Please sign in to comment.