소스 검색

chore: let clippy fail

thesimplekid 1 개월 전
부모
커밋
e0531040ca
3개의 변경된 파일0개의 추가작업 그리고 5개의 파일을 삭제
  1. 0 2
      crates/cdk-sql-common/src/mint/mod.rs
  2. 0 1
      crates/cdk-sql-common/src/stmt.rs
  3. 0 2
      crates/cdk-sql-common/src/wallet/mod.rs

+ 0 - 2
crates/cdk-sql-common/src/mint/mod.rs

@@ -136,7 +136,6 @@ where
     type Err = Error;
 
     // FIXME: Replace unwrap with proper error handling
-    #[allow(clippy::unwrap_used)]
     async fn add_proofs(
         &mut self,
         proofs: Proofs,
@@ -2458,7 +2457,6 @@ fn sql_row_to_mint_quote(
 }
 
 // FIXME: Replace unwrap with proper error handling
-#[allow(clippy::unwrap_used)]
 fn sql_row_to_melt_quote(row: Vec<Column>) -> Result<mint::MeltQuote, Error> {
     unpack_into!(
         let (

+ 0 - 1
crates/cdk-sql-common/src/stmt.rs

@@ -73,7 +73,6 @@ pub enum SqlParseError {
 /// This function does not validate the SQL statement, it only extracts the placeholder to be
 /// database agnostic.
 // FIXME: Replace unwraps with proper error handling
-#[allow(clippy::unwrap_used)]
 pub fn split_sql_parts(input: &str) -> Result<Vec<SqlPart>, SqlParseError> {
     let mut parts = Vec::new();
     let mut current = String::new();

+ 0 - 2
crates/cdk-sql-common/src/wallet/mod.rs

@@ -68,7 +68,6 @@ where
     }
 
     // FIXME: Replace unwrap with proper error handling
-    #[allow(clippy::unwrap_used)]
     async fn add_keyset_u32<T>(conn: &T) -> Result<(), Error>
     where
         T: DatabaseExecutor,
@@ -714,7 +713,6 @@ ON CONFLICT(id) DO UPDATE SET
     }
 
     // FIXME: Replace unwrap with proper error handling
-    #[allow(clippy::unwrap_used)]
     async fn update_proofs(
         &self,
         added: Vec<ProofInfo>,