Skip to content

Commit

Permalink
Silence some lints
Browse files Browse the repository at this point in the history
  • Loading branch information
AntoniosBarotsis committed Dec 10, 2024
1 parent 8ec0c79 commit 908030f
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/api_keys.rs
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,7 @@ pub mod types {
}

#[cfg(test)]
#[allow(clippy::needless_return)]
mod test {
use crate::tests::CLIENT;
use crate::types::CreateApiKeyOptions;
Expand Down
1 change: 1 addition & 0 deletions src/audiences.rs
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,7 @@ pub mod types {
}

#[cfg(test)]
#[allow(clippy::needless_return)]
mod test {
use crate::tests::CLIENT;
use crate::Result;
Expand Down
1 change: 1 addition & 0 deletions src/broadcasts.rs
Original file line number Diff line number Diff line change
Expand Up @@ -256,6 +256,7 @@ pub mod types {
}

#[cfg(test)]
#[allow(clippy::needless_return)]
mod test {
use crate::{
tests::CLIENT,
Expand Down
1 change: 1 addition & 0 deletions src/contacts.rs
Original file line number Diff line number Diff line change
Expand Up @@ -297,6 +297,7 @@ pub mod types {
}

#[cfg(test)]
#[allow(clippy::needless_return)]
mod test {
use crate::tests::CLIENT;
use crate::types::{ContactChanges, ContactData};
Expand Down
3 changes: 2 additions & 1 deletion src/domains.rs
Original file line number Diff line number Diff line change
Expand Up @@ -388,6 +388,7 @@ pub mod types {
}

#[cfg(test)]
#[allow(clippy::needless_return)]
mod test {
use crate::{
domains::types::{CreateDomainOptions, DomainChanges, Tls},
Expand Down Expand Up @@ -422,7 +423,7 @@ mod test {
.with_tls(Tls::Enforced);

let domain = resend.domains.update(&domain.id, updates).await?;
std::thread::sleep(std::time::Duration::from_secs(1));
std::thread::sleep(std::time::Duration::from_secs(4));

// Delete
let resp = resend.domains.delete(domain.id).await?;
Expand Down
1 change: 1 addition & 0 deletions src/emails.rs
Original file line number Diff line number Diff line change
Expand Up @@ -479,6 +479,7 @@ where

#[cfg(test)]
#[allow(clippy::unwrap_used)]
#[allow(clippy::needless_return)]
mod test {
use crate::types::{CreateEmailBaseOptions, Email, Tag, UpdateEmailOptions};
use crate::{tests::CLIENT, Result};
Expand Down
1 change: 1 addition & 0 deletions src/rate_limit.rs
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,7 @@ macro_rules! retry_opts {
}

#[cfg(test)]
#[allow(clippy::needless_return)]
mod tests {
use super::{send_with_retry_opts, RetryOptions};
use crate::Error;
Expand Down

0 comments on commit 908030f

Please sign in to comment.