Skip to content

Commit

Permalink
Appeased the linter, removed the vscode crate extension
Browse files Browse the repository at this point in the history
  • Loading branch information
Xithrius committed Jul 27, 2024
1 parent 9bb0962 commit 35dba42
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 8 deletions.
5 changes: 1 addition & 4 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
{
"recommendations": [
"serayuzgur.crates",
"rust-lang.rust-analyzer"
],
"recommendations": ["rust-lang.rust-analyzer"]
}
2 changes: 1 addition & 1 deletion src/emotes/downloader.rs
Original file line number Diff line number Diff line change
Expand Up @@ -475,7 +475,7 @@ pub async fn get_twitch_emote(name: &str) -> Result<()> {

let res = if res.is_err() {
client
.get(&url.replace("animated", "static"))
.get(url.replace("animated", "static"))
.send()
.await?
.error_for_status()
Expand Down
6 changes: 3 additions & 3 deletions src/handlers/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ impl App {
self.components.chat.scroll_offset.jump_to(0);
}

pub fn purge_user_messages(&mut self, user_id: &str) {
pub fn purge_user_messages(&self, user_id: &str) {
let messages = self
.messages
.borrow_mut()
Expand All @@ -190,7 +190,7 @@ impl App {
self.messages.replace(messages);
}

pub fn remove_message_with(&mut self, message_id: &str) {
pub fn remove_message_with(&self, message_id: &str) {
let index = self
.messages
.borrow_mut()
Expand All @@ -217,7 +217,7 @@ impl App {
}

#[allow(dead_code)]
pub fn rotate_theme(&mut self) {
pub fn rotate_theme(&self) {
todo!("Rotate through different themes")
}
}

0 comments on commit 35dba42

Please sign in to comment.