Prechádzať zdrojové kódy

chore: let clippy fail

thesimplekid 1 mesiac pred
rodič
commit
e0531040ca

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

@@ -136,7 +136,6 @@ where
     type Err = Error;
     type Err = Error;
 
 
     // FIXME: Replace unwrap with proper error handling
     // FIXME: Replace unwrap with proper error handling
-    #[allow(clippy::unwrap_used)]
     async fn add_proofs(
     async fn add_proofs(
         &mut self,
         &mut self,
         proofs: Proofs,
         proofs: Proofs,
@@ -2458,7 +2457,6 @@ fn sql_row_to_mint_quote(
 }
 }
 
 
 // FIXME: Replace unwrap with proper error handling
 // FIXME: Replace unwrap with proper error handling
-#[allow(clippy::unwrap_used)]
 fn sql_row_to_melt_quote(row: Vec<Column>) -> Result<mint::MeltQuote, Error> {
 fn sql_row_to_melt_quote(row: Vec<Column>) -> Result<mint::MeltQuote, Error> {
     unpack_into!(
     unpack_into!(
         let (
         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
 /// This function does not validate the SQL statement, it only extracts the placeholder to be
 /// database agnostic.
 /// database agnostic.
 // FIXME: Replace unwraps with proper error handling
 // FIXME: Replace unwraps with proper error handling
-#[allow(clippy::unwrap_used)]
 pub fn split_sql_parts(input: &str) -> Result<Vec<SqlPart>, SqlParseError> {
 pub fn split_sql_parts(input: &str) -> Result<Vec<SqlPart>, SqlParseError> {
     let mut parts = Vec::new();
     let mut parts = Vec::new();
     let mut current = String::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
     // FIXME: Replace unwrap with proper error handling
-    #[allow(clippy::unwrap_used)]
     async fn add_keyset_u32<T>(conn: &T) -> Result<(), Error>
     async fn add_keyset_u32<T>(conn: &T) -> Result<(), Error>
     where
     where
         T: DatabaseExecutor,
         T: DatabaseExecutor,
@@ -714,7 +713,6 @@ ON CONFLICT(id) DO UPDATE SET
     }
     }
 
 
     // FIXME: Replace unwrap with proper error handling
     // FIXME: Replace unwrap with proper error handling
-    #[allow(clippy::unwrap_used)]
     async fn update_proofs(
     async fn update_proofs(
         &self,
         &self,
         added: Vec<ProofInfo>,
         added: Vec<ProofInfo>,