From e25982f24eeb01485cd3697d71cb5759207b3186 Mon Sep 17 00:00:00 2001 From: Wolfgang Bumiller Date: Mon, 29 Nov 2021 11:24:02 +0100 Subject: [PATCH] remove unused identity macro this is not required anymore by the sortable macro Signed-off-by: Wolfgang Bumiller --- src/api2/access/mod.rs | 2 +- src/api2/access/openid.rs | 2 +- src/api2/admin/datastore.rs | 2 +- src/api2/backup/mod.rs | 2 +- src/api2/backup/upload_chunk.rs | 2 +- src/api2/config/access/mod.rs | 2 +- src/api2/node/disks/mod.rs | 2 +- src/api2/node/mod.rs | 2 +- src/api2/node/services.rs | 2 +- src/api2/node/tasks.rs | 2 +- src/api2/reader/mod.rs | 2 +- src/api2/tape/drive.rs | 2 +- 12 files changed, 12 insertions(+), 12 deletions(-) diff --git a/src/api2/access/mod.rs b/src/api2/access/mod.rs index d78f0fa0..dab75f99 100644 --- a/src/api2/access/mod.rs +++ b/src/api2/access/mod.rs @@ -6,7 +6,7 @@ use serde_json::{json, Value}; use std::collections::HashMap; use std::collections::HashSet; -use proxmox_sys::{identity, sortable}; +use proxmox_sys::sortable; use proxmox_router::{ http_err, list_subdirs_api_method, Router, RpcEnvironment, SubdirMap, Permission, }; diff --git a/src/api2/access/openid.rs b/src/api2/access/openid.rs index d6d04d5c..ccdf6651 100644 --- a/src/api2/access/openid.rs +++ b/src/api2/access/openid.rs @@ -4,7 +4,7 @@ use std::convert::TryFrom; use anyhow::{bail, format_err, Error}; use serde_json::{json, Value}; -use proxmox_sys::{identity, sortable}; +use proxmox_sys::sortable; use proxmox_router::{ http_err, list_subdirs_api_method, Router, RpcEnvironment, SubdirMap, Permission, }; diff --git a/src/api2/admin/datastore.rs b/src/api2/admin/datastore.rs index d36d793d..b653f906 100644 --- a/src/api2/admin/datastore.rs +++ b/src/api2/admin/datastore.rs @@ -12,7 +12,7 @@ use hyper::{header, Body, Response, StatusCode}; use serde_json::{json, Value}; use tokio_stream::wrappers::ReceiverStream; -use proxmox_sys::{identity, sortable}; +use proxmox_sys::sortable; use proxmox_sys::fs::{ file_read_firstline, file_read_optional_string, replace_file, CreateOptions, }; diff --git a/src/api2/backup/mod.rs b/src/api2/backup/mod.rs index 6570d164..395edd3d 100644 --- a/src/api2/backup/mod.rs +++ b/src/api2/backup/mod.rs @@ -8,7 +8,7 @@ use hyper::{Body, Response, Request, StatusCode}; use serde_json::{json, Value}; use hex::FromHex; -use proxmox_sys::{sortable, identity}; +use proxmox_sys::sortable; use proxmox_router::list_subdirs_api_method; use proxmox_router::{ ApiResponseFuture, ApiHandler, ApiMethod, Router, RpcEnvironment, SubdirMap, Permission, diff --git a/src/api2/backup/upload_chunk.rs b/src/api2/backup/upload_chunk.rs index c867259a..35f430ed 100644 --- a/src/api2/backup/upload_chunk.rs +++ b/src/api2/backup/upload_chunk.rs @@ -9,7 +9,7 @@ use hyper::http::request::Parts; use serde_json::{json, Value}; use hex::FromHex; -use proxmox_sys::{sortable, identity}; +use proxmox_sys::sortable; use proxmox_router::{ApiResponseFuture, ApiHandler, ApiMethod, RpcEnvironment}; use proxmox_schema::*; diff --git a/src/api2/config/access/mod.rs b/src/api2/config/access/mod.rs index 8cb03cd7..d76a28dc 100644 --- a/src/api2/config/access/mod.rs +++ b/src/api2/config/access/mod.rs @@ -1,6 +1,6 @@ use proxmox_router::{Router, SubdirMap}; use proxmox_router::list_subdirs_api_method; -use proxmox_sys::{identity, sortable}; +use proxmox_sys::sortable; pub mod tfa; pub mod openid; diff --git a/src/api2/node/disks/mod.rs b/src/api2/node/disks/mod.rs index 0701b944..3a2c79fa 100644 --- a/src/api2/node/disks/mod.rs +++ b/src/api2/node/disks/mod.rs @@ -1,7 +1,7 @@ use anyhow::{bail, Error}; use serde_json::{json, Value}; -use proxmox_sys::{sortable, identity}; +use proxmox_sys::sortable; use proxmox_router::{ list_subdirs_api_method, Router, RpcEnvironment, RpcEnvironmentType, SubdirMap, Permission, }; diff --git a/src/api2/node/mod.rs b/src/api2/node/mod.rs index b60ea9e7..24d66e58 100644 --- a/src/api2/node/mod.rs +++ b/src/api2/node/mod.rs @@ -12,7 +12,7 @@ use hyper::Request; use serde_json::{json, Value}; use tokio::io::{AsyncBufReadExt, BufReader}; -use proxmox_sys::{identity, sortable}; +use proxmox_sys::sortable; use proxmox_sys::fd::fd_change_cloexec; use proxmox_router::{ diff --git a/src/api2/node/services.rs b/src/api2/node/services.rs index 9a50d4e7..b6a7f1ae 100644 --- a/src/api2/node/services.rs +++ b/src/api2/node/services.rs @@ -3,7 +3,7 @@ use std::process::{Command, Stdio}; use anyhow::{bail, Error}; use serde_json::{json, Value}; -use proxmox_sys::{sortable, identity}; +use proxmox_sys::sortable; use proxmox_router::{list_subdirs_api_method, Router, Permission, RpcEnvironment, SubdirMap}; use proxmox_schema::api; diff --git a/src/api2/node/tasks.rs b/src/api2/node/tasks.rs index 55ea8083..72f78bad 100644 --- a/src/api2/node/tasks.rs +++ b/src/api2/node/tasks.rs @@ -4,7 +4,7 @@ use std::io::{BufRead, BufReader}; use anyhow::{bail, Error}; use serde_json::{json, Value}; -use proxmox_sys::{identity, sortable}; +use proxmox_sys::sortable; use proxmox_router::{list_subdirs_api_method, Router, RpcEnvironment, Permission, SubdirMap}; use proxmox_schema::api; diff --git a/src/api2/reader/mod.rs b/src/api2/reader/mod.rs index 698a0b50..2b11d1b1 100644 --- a/src/api2/reader/mod.rs +++ b/src/api2/reader/mod.rs @@ -8,7 +8,7 @@ use hyper::{Body, Response, Request, StatusCode}; use serde_json::Value; use hex::FromHex; -use proxmox_sys::{identity, sortable}; +use proxmox_sys::sortable; use proxmox_router::{ http_err, list_subdirs_api_method, ApiHandler, ApiMethod, ApiResponseFuture, Permission, Router, RpcEnvironment, SubdirMap, diff --git a/src/api2/tape/drive.rs b/src/api2/tape/drive.rs index cedc2003..265737f5 100644 --- a/src/api2/tape/drive.rs +++ b/src/api2/tape/drive.rs @@ -6,7 +6,7 @@ use std::collections::HashMap; use anyhow::{bail, format_err, Error}; use serde_json::Value; -use proxmox_sys::{sortable, identity}; +use proxmox_sys::sortable; use proxmox_router::{ list_subdirs_api_method, Permission, Router, RpcEnvironment, RpcEnvironmentType, SubdirMap, };