From 31a459637c97e7ebf1c042536197dac590ea8cb4 Mon Sep 17 00:00:00 2001 From: Bauke Date: Sun, 25 Feb 2024 13:12:20 +0100 Subject: [PATCH] Fix linting issues. --- source/topic.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/source/topic.rs b/source/topic.rs index aac7824..e49558e 100644 --- a/source/topic.rs +++ b/source/topic.rs @@ -64,7 +64,7 @@ pub enum TopicAuthor { /// The topic was posted by Tildes itself. /// /// Technically the user for this is [Tildes](https://tildes.net/user/tildes) - /// but in the topic it says "Automatically posted " where the username + /// but in the topic it says "Automatically posted <date>" where the username /// normally goes, so may as well special-case it here too. Scheduled, @@ -110,7 +110,7 @@ impl Topic { } else { TopicAuthor::Name( topic_byline - .split(" ") + .split(' ') .last() .ok_or(ParseError::MissingExpectedHtml)? .to_string(), @@ -121,7 +121,7 @@ impl Topic { select_first_element_text(topic_article_element, &TOPIC_COMMENT_COUNT) { comment_total - .split(" ") + .split(' ') .next() .map(|count| count.parse::()) .ok_or(ParseError::MissingExpectedHtml)? @@ -154,7 +154,7 @@ impl Topic { "", ) .to_string(); - assert!(group.starts_with("~")); + assert!(group.starts_with('~')); let id = topic_article_element .value()