Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 32c44c0

Browse files
committed
fix: lint
1 parent f2b25ce commit 32c44c0

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

libs/jwst-storage/src/storage/blobs/s3_local_db.rs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,15 @@ use sea_orm::{DatabaseConnection, EntityTrait};
1010
use std::collections::HashMap;
1111
use std::sync::Arc;
1212

13+
#[allow(unused)]
1314
pub(super) type S3BlobModel = <S3Blobs as EntityTrait>::Model;
15+
#[allow(unused)]
1416
type BlobActiveModel = entities::s3_blobs::ActiveModel;
17+
#[allow(unused)]
1518
type BlobColumn = <S3Blobs as EntityTrait>::Column;
1619

1720
#[derive(Clone)]
21+
#[allow(unused)]
1822
pub struct BlobS3DBStorage {
1923
bucket: Arc<Bucket>,
2024
pub(super) pool: DatabaseConnection,
@@ -29,7 +33,7 @@ impl AsRef<DatabaseConnection> for BlobS3DBStorage {
2933

3034
impl SharedDBOps for BlobS3DBStorage {}
3135

32-
#[allow(unused_variables)]
36+
#[allow(unused)]
3337
impl BlobS3DBStorage {
3438
pub async fn init_with_pool() -> JwstStorageResult<Self> {
3539
todo!()
@@ -91,7 +95,7 @@ impl BlobStorage<JwstStorageError> for S3Storage {
9195
id: String,
9296
) -> JwstResult<bool, JwstStorageError> {
9397
let workspace_id = workspace.unwrap_or("__default__".into());
94-
match self.op.delete(&*format!("{}/{}", workspace_id, id)).await {
98+
match self.op.delete(&format!("{}/{}", workspace_id, id)).await {
9599
Ok(_) => Ok(true),
96100
Err(e) => Err(JwstStorageError::from(e)),
97101
}

0 commit comments

Comments
 (0)