diff --git a/src/blob/blob_tests.rs b/src/blob/blob_tests.rs index a4ce82486..6b48dc67e 100644 --- a/src/blob/blob_tests.rs +++ b/src/blob/blob_tests.rs @@ -100,7 +100,7 @@ async fn test_create_long_names() { let t = TestContext::new().await; let s = format!("file.{}", "a".repeat(100)); let blob = BlobObject::create_and_deduplicate_from_bytes(&t, b"data", &s).unwrap(); - let blobname = blob.as_name().split('/').last().unwrap(); + let blobname = blob.as_name().split('/').next_back().unwrap(); assert!(blobname.len() < 70); } diff --git a/src/message.rs b/src/message.rs index 0841c7420..8dfcd84fa 100644 --- a/src/message.rs +++ b/src/message.rs @@ -1360,7 +1360,7 @@ impl Message { /// * Lack of valid signature on an e2ee message, usually for received messages. /// * Failure to decrypt an e2ee message, usually for received messages. /// * When a message could not be delivered to one or more recipients the non-delivery - /// notification text can be stored in the error status. + /// notification text can be stored in the error status. pub fn error(&self) -> Option { self.error.clone() } diff --git a/src/net/http.rs b/src/net/http.rs index b72a3729b..3184ecb1f 100644 --- a/src/net/http.rs +++ b/src/net/http.rs @@ -253,7 +253,7 @@ async fn fetch_url(context: &Context, original_url: &str) -> Result { .headers() .get_all("location") .iter() - .last() + .next_back() .ok_or_else(|| anyhow!("Redirection doesn't have a target location"))? .to_str()?; info!(context, "Following redirect to {}", header); diff --git a/src/sql.rs b/src/sql.rs index 0a5be9e36..a355e62b0 100644 --- a/src/sql.rs +++ b/src/sql.rs @@ -458,7 +458,9 @@ impl Sql { /// in parallel with other transactions. NB: Creating and modifying temporary tables are also /// allowed with `query_only`, temporary tables aren't visible in other connections, but you /// need to pass `PRAGMA query_only=0;` to SQLite before that: - /// `pragma_update(None, "query_only", "0")`. + /// ```text + /// pragma_update(None, "query_only", "0") + /// ``` /// Also temporary tables need to be dropped because the connection is returned to the pool /// then. ///