mirror of
https://git.asonix.dog/asonix/relay.git
synced 2024-11-22 09:31:07 +00:00
clippy
This commit is contained in:
parent
815c18b899
commit
565a94d756
2 changed files with 2 additions and 1 deletions
|
@ -23,7 +23,7 @@ fn git_info() {
|
||||||
fn version_info() -> Result<(), anyhow::Error> {
|
fn version_info() -> Result<(), anyhow::Error> {
|
||||||
let cargo_toml = Path::new(&std::env::var("CARGO_MANIFEST_DIR")?).join("Cargo.toml");
|
let cargo_toml = Path::new(&std::env::var("CARGO_MANIFEST_DIR")?).join("Cargo.toml");
|
||||||
|
|
||||||
let mut file = File::open(&cargo_toml)?;
|
let mut file = File::open(cargo_toml)?;
|
||||||
|
|
||||||
let mut cargo_data = String::new();
|
let mut cargo_data = String::new();
|
||||||
file.read_to_string(&mut cargo_data)?;
|
file.read_to_string(&mut cargo_data)?;
|
||||||
|
|
|
@ -17,6 +17,7 @@ use actix_web::{web, HttpResponse};
|
||||||
use http_signature_normalization_actix::prelude::{DigestVerified, SignatureVerified};
|
use http_signature_normalization_actix::prelude::{DigestVerified, SignatureVerified};
|
||||||
|
|
||||||
#[tracing::instrument(name = "Inbox", skip_all)]
|
#[tracing::instrument(name = "Inbox", skip_all)]
|
||||||
|
#[allow(clippy::too_many_arguments)]
|
||||||
pub(crate) async fn route(
|
pub(crate) async fn route(
|
||||||
state: web::Data<State>,
|
state: web::Data<State>,
|
||||||
actors: web::Data<ActorCache>,
|
actors: web::Data<ActorCache>,
|
||||||
|
|
Loading…
Reference in a new issue