From 1e85f97b9f1f20d4dd4565b54ea45af419f13876 Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Fri, 23 Sep 2022 07:56:40 +0200 Subject: [PATCH] api/pull: drop unused ApiMethod info the API macro can handle this Signed-off-by: Thomas Lamprecht --- src/api2/pull.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/api2/pull.rs b/src/api2/pull.rs index 06044323..193f28fe 100644 --- a/src/api2/pull.rs +++ b/src/api2/pull.rs @@ -4,7 +4,7 @@ use std::convert::TryFrom; use anyhow::{format_err, Error}; use futures::{future::FutureExt, select}; -use proxmox_router::{ApiMethod, Permission, Router, RpcEnvironment}; +use proxmox_router::{Permission, Router, RpcEnvironment}; use proxmox_schema::api; use proxmox_sys::task_log; @@ -227,7 +227,6 @@ async fn pull( max_depth: Option, group_filter: Option>, limit: RateLimitConfig, - _info: &ApiMethod, rpcenv: &mut dyn RpcEnvironment, ) -> Result { let auth_id: Authid = rpcenv.get_auth_id().unwrap().parse()?;