Skip to content

Commit

Permalink
Fix unused variable warning from rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
GnomedDev committed Mar 13, 2024
1 parent 1890018 commit 6cfbba0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/model/guild/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -416,7 +416,11 @@ impl Guild {

#[cfg(feature = "cache")]
#[deprecated = "Iterate through Guild::channels and use Iterator::find"]
pub fn channel_id_from_name(&self, cache: &Cache, name: &str) -> Option<ChannelId> {
pub fn channel_id_from_name(
&self,
#[allow(unused_variables)] cache: &Cache,
name: &str,
) -> Option<ChannelId> {
self.channels.values().find(|c| &*c.name == name).map(|c| c.id)
}

Expand Down

0 comments on commit 6cfbba0

Please sign in to comment.