mirror of
https://github.com/davegallant/rfd-notify.git
synced 2025-08-07 00:58:12 +00:00
Fix lint (#261)
This commit is contained in:
@@ -53,7 +53,7 @@ pub fn send(topic: &Topic, posts: &Posts, expression: &str, config: &Config) {
|
||||
debug!("Sending email notification.");
|
||||
|
||||
match sg.send(mail_info) {
|
||||
Err(err) => println!("SendGrid failed to send mail. Error: {}", err),
|
||||
Ok(body) => println!("SendGrid Response: {:?}", body),
|
||||
Err(err) => println!("SendGrid failed to send mail. Error: {err}"),
|
||||
Ok(body) => println!("SendGrid Response: {body:?}"),
|
||||
};
|
||||
}
|
||||
|
@@ -48,8 +48,7 @@ pub async fn get_hot_deals() -> Result<String, Box<dyn std::error::Error>> {
|
||||
#[tokio::main]
|
||||
pub async fn get_topic(topic_id: u32) -> Result<String, Box<dyn std::error::Error>> {
|
||||
let resp = reqwest::get(&format!(
|
||||
"https://forums.redflagdeals.com/api/topics/{}/posts?per_page=1&page=1",
|
||||
topic_id
|
||||
"https://forums.redflagdeals.com/api/topics/{topic_id}/posts?per_page=1&page=1"
|
||||
))
|
||||
.await?
|
||||
.text()
|
||||
|
Reference in New Issue
Block a user