From a9128ab081237043e1df8453a5257eb79f1f3ab1 Mon Sep 17 00:00:00 2001 From: Mendy Man Date: Tue, 18 Feb 2025 11:09:01 -0500 Subject: [PATCH] rust: Make clippy happy https://rust-lang.github.io/rust-clippy/master/index.html#double_ended_iterator_last https://rust-lang.github.io/rust-clippy/master/index.html#doc_overindented_list_items --- rust/src/api/client.rs | 2 +- server/svix-server/src/queue/redis.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/rust/src/api/client.rs b/rust/src/api/client.rs index 1a7e12ac7..1b91856b1 100644 --- a/rust/src/api/client.rs +++ b/rust/src/api/client.rs @@ -72,7 +72,7 @@ impl Svix { /// the cost of TLS initialization. pub fn with_token(&self, token: String) -> Self { let base_path = self.server_url.clone().unwrap_or_else(|| { - match token.split('.').last() { + match token.split('.').next_back() { Some("us") => "https://api.us.svix.com", Some("eu") => "https://api.eu.svix.com", Some("in") => "https://api.in.svix.com", diff --git a/server/svix-server/src/queue/redis.rs b/server/svix-server/src/queue/redis.rs index 85f5fd344..8182d41c6 100644 --- a/server/svix-server/src/queue/redis.rs +++ b/server/svix-server/src/queue/redis.rs @@ -11,9 +11,9 @@ //! //! This implementation uses the following data structures: //! - A "tasks to be processed" stream - which is what the consumer listens to for tasks. -//! AKA: Main +//! AKA: Main //! - A ZSET for delayed tasks with the sort order being the time-to-be-delivered -//! AKA: Delayed +//! AKA: Delayed //! //! - Tasks in the delayed queue are prefixed with a ksuid so that we can know the timestamp of when //! they should be executed.