Make lints pass

This commit is contained in:
Andras Schmelczer 2024-12-18 21:54:58 +00:00
commit 0c92bf959b
No known key found for this signature in database
GPG key ID: FC8F2C3D3D1A718C
10 changed files with 30 additions and 20 deletions

View file

@ -26,6 +26,7 @@ pub enum SyncServerError {
#[error("Unauthorized: {0}")]
Unauthorized(#[source] anyhow::Error),
#[allow(dead_code)]
#[error("Permission denied error: {0}")]
PermissionDeniedError(#[source] anyhow::Error),
}
@ -82,7 +83,9 @@ impl OperationOutput for SyncServerError {
type Inner = Self;
}
pub const fn init_error(error: anyhow::Error) -> SyncServerError { SyncServerError::InitError(error) }
pub const fn init_error(error: anyhow::Error) -> SyncServerError {
SyncServerError::InitError(error)
}
pub fn server_error(error: anyhow::Error) -> SyncServerError {
warn!("Server error: {:?}", error);