You've already forked AstralRinth
forked from didirus/AstralRinth
Fix lint
This commit is contained in:
3
.github/workflows/docker-compile.yml
vendored
3
.github/workflows/docker-compile.yml
vendored
@@ -1,9 +1,6 @@
|
|||||||
name: Docker image build
|
name: Docker image build
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
|
||||||
branches-ignore:
|
|
||||||
- master
|
|
||||||
pull_request:
|
pull_request:
|
||||||
env:
|
env:
|
||||||
CARGO_TERM_COLOR: always
|
CARGO_TERM_COLOR: always
|
||||||
|
|||||||
@@ -7,8 +7,8 @@ use crate::{database, Pepper};
|
|||||||
use actix_web::{delete, get, patch, web, HttpRequest, HttpResponse};
|
use actix_web::{delete, get, patch, web, HttpRequest, HttpResponse};
|
||||||
use serde::{Deserialize, Serialize};
|
use serde::{Deserialize, Serialize};
|
||||||
use sqlx::PgPool;
|
use sqlx::PgPool;
|
||||||
use std::sync::Arc;
|
|
||||||
use std::borrow::Borrow;
|
use std::borrow::Borrow;
|
||||||
|
use std::sync::Arc;
|
||||||
|
|
||||||
// TODO: this needs filtering, and a better response type
|
// TODO: this needs filtering, and a better response type
|
||||||
// Currently it only gives a list of ids, which have to be
|
// 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
|
// under /api/v1/version_file/{hash}/download
|
||||||
|
#[allow(clippy::await_holding_refcell_ref)]
|
||||||
#[get("{version_id}/download")]
|
#[get("{version_id}/download")]
|
||||||
pub async fn download_version(
|
pub async fn download_version(
|
||||||
req: HttpRequest,
|
req: HttpRequest,
|
||||||
|
|||||||
Reference in New Issue
Block a user