More lints
This commit is contained in:
parent
1e1dd7b877
commit
2d5c91a5ef
7 changed files with 27 additions and 20 deletions
|
|
@ -26,7 +26,6 @@ pub enum SyncServerError {
|
|||
#[error("Unauthorized: {0}")]
|
||||
Unauthorized(#[source] anyhow::Error),
|
||||
|
||||
#[expect(dead_code)]
|
||||
#[error("Permission denied error: {0}")]
|
||||
PermissionDeniedError(#[source] anyhow::Error),
|
||||
}
|
||||
|
|
@ -107,6 +106,7 @@ pub fn unauthorized_error(error: anyhow::Error) -> SyncServerError {
|
|||
SyncServerError::Unauthorized(error)
|
||||
}
|
||||
|
||||
#[allow(dead_code)]
|
||||
pub fn permission_denied_error(error: anyhow::Error) -> SyncServerError {
|
||||
info!("Permission denied error: {:?}", error);
|
||||
SyncServerError::PermissionDeniedError(error)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue