Cleanup: remove unnecessary #[allow(dead_code)] and #[allow(unused)] attributes (#2535)

Remove unnecessary #[allow(dead_code)] and #[allow(unused)] attributes
This commit is contained in:
Julian Braha 2024-06-04 03:11:36 -04:00 committed by GitHub
parent 03ede58530
commit ef1be196c1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 0 additions and 10 deletions

View file

@ -198,7 +198,6 @@ pub fn filter_existing_file_path_params(
/// With this function we try to do a loose filtering of file paths, to avoid having to do check
/// twice for directories and for files. This is because directories have a trailing `/` or `\` in
/// the materialized path
#[allow(unused)]
pub fn loose_find_existing_file_path_params(
location_id: location::id::Type,
location_path: impl AsRef<Path>,

View file

@ -55,7 +55,6 @@ impl InvalidateOperationEvent {
/// a request to invalidate a specific resource
#[derive(Debug)]
#[allow(dead_code)]
pub(crate) struct InvalidationRequest {
pub key: &'static str,
pub arg_ty: Option<DataType>,
@ -65,13 +64,11 @@ pub(crate) struct InvalidationRequest {
/// invalidation request for a specific resource
#[derive(Debug, Default)]
#[allow(dead_code)]
pub(crate) struct InvalidRequests {
pub queries: Vec<InvalidationRequest>,
}
impl InvalidRequests {
#[allow(unused)]
const fn new() -> Self {
Self {
queries: Vec::new(),

View file

@ -29,14 +29,12 @@ mod watcher;
mod helpers;
#[derive(Clone, Copy, Debug)]
#[allow(dead_code)]
enum ManagementMessageAction {
Add,
Remove,
}
#[derive(Debug)]
#[allow(dead_code)]
pub struct LocationManagementMessage {
location_id: location::id::Type,
library: Arc<Library>,
@ -45,7 +43,6 @@ pub struct LocationManagementMessage {
}
#[derive(Debug)]
#[allow(dead_code)]
enum WatcherManagementMessageAction {
Stop,
Reinit,
@ -53,7 +50,6 @@ enum WatcherManagementMessageAction {
}
#[derive(Debug)]
#[allow(dead_code)]
pub struct WatcherManagementMessage {
location_id: location::id::Type,
library: Arc<Library>,

View file

@ -9,7 +9,6 @@ use tracing::debug;
use crate::{p2p::Header, Node};
/// Transfer an rspc query to a remote node.
#[allow(unused)]
pub async fn remote_rspc(
p2p: Arc<P2P>,
identity: RemoteIdentity,

View file

@ -17,7 +17,6 @@ enum Error {}
#[derive(serde::Deserialize)]
struct SDSyncGenerator {}
#[allow(unused)]
#[derive(Clone)]
pub enum ModelSyncType<'a> {
Local {