Skip to content

Commit

Permalink
style: use Option::map instead of Option::and_then returning `Som…
Browse files Browse the repository at this point in the history
…e` [skip ci]
  • Loading branch information
ryanccn committed Oct 26, 2023
1 parent 00d2940 commit d80bafd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ async fn main() -> Result<()> {
}

FullEvent::PresenceUpdate { new_data, .. } => {
if new_data.guild_id.and_then(|g| Some(g.to_string()))
if new_data.guild_id.map(|g| g.to_string())
== std::env::var("GUILD_ID").ok()
{
let mut presence_store =
Expand Down

0 comments on commit d80bafd

Please sign in to comment.