From 4994064e6e1acbde7d8acedae0471c959613994f Mon Sep 17 00:00:00 2001 From: Geometrically Date: Fri, 1 Jan 2021 09:27:37 -0700 Subject: [PATCH] Fix lint --- .github/workflows/docker-compile.yml | 3 --- src/routes/versions.rs | 3 ++- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/docker-compile.yml b/.github/workflows/docker-compile.yml index 80783460..d4e05cf4 100644 --- a/.github/workflows/docker-compile.yml +++ b/.github/workflows/docker-compile.yml @@ -1,9 +1,6 @@ name: Docker image build on: - push: - branches-ignore: - - master pull_request: env: CARGO_TERM_COLOR: always diff --git a/src/routes/versions.rs b/src/routes/versions.rs index 8be15e13..1c2461c1 100644 --- a/src/routes/versions.rs +++ b/src/routes/versions.rs @@ -7,8 +7,8 @@ use crate::{database, Pepper}; use actix_web::{delete, get, patch, web, HttpRequest, HttpResponse}; use serde::{Deserialize, Serialize}; use sqlx::PgPool; -use std::sync::Arc; use std::borrow::Borrow; +use std::sync::Arc; // TODO: this needs filtering, and a better response type // Currently it only gives a list of ids, which have to be @@ -634,6 +634,7 @@ pub struct DownloadRedirect { } // under /api/v1/version_file/{hash}/download +#[allow(clippy::await_holding_refcell_ref)] #[get("{version_id}/download")] pub async fn download_version( req: HttpRequest,