From afae54bd498623137b9b8e246cbac0d20d18c05d Mon Sep 17 00:00:00 2001 From: Ayrat Badykov Date: Fri, 29 Nov 2024 09:35:07 +0200 Subject: [PATCH] fix clippy, update rust version --- Dockerfile | 2 +- src/deliver/deliver_chat_updates_job.rs | 2 +- src/sync/reader/atom.rs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 9a38333b..87d6632c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,7 +1,7 @@ #################################################################################################### ## Builder #################################################################################################### -FROM rust:1.82.0-bullseye AS builder +FROM rust:1.83.0-bullseye AS builder RUN apt update && apt install -y libssl-dev pkg-config libz-dev libcurl4 postgresql RUN update-ca-certificates diff --git a/src/deliver/deliver_chat_updates_job.rs b/src/deliver/deliver_chat_updates_job.rs index 24a9bae7..0dd56dff 100644 --- a/src/deliver/deliver_chat_updates_job.rs +++ b/src/deliver/deliver_chat_updates_job.rs @@ -64,7 +64,7 @@ pub struct DeliverChatUpdates<'a> { api: &'a Api, } -impl<'a> DeliverChatUpdates<'a> { +impl DeliverChatUpdates<'_> { pub fn deliver(&mut self) -> Result<(), DeliverJobError> { let feed_items = telegram::find_undelivered_feed_items( self.db_connection, diff --git a/src/sync/reader/atom.rs b/src/sync/reader/atom.rs index 899a7871..8c344dec 100644 --- a/src/sync/reader/atom.rs +++ b/src/sync/reader/atom.rs @@ -38,7 +38,7 @@ impl From for FetchedFeed { let mut items = feed .entries() .iter() - .filter(|item| item.links().first().is_some()) + .filter(|item| item.links().is_empty()) .map(|item| { let base_date = match item.published() { None => Some(item.updated()),