cargo fmt

This commit is contained in:
delta 2022-07-11 09:07:43 +02:00
parent e0f896e23e
commit 0854a70100
2 changed files with 3 additions and 5 deletions

View file

@ -60,7 +60,6 @@ impl<'a> StrChunks<'a> {
}
async fn create_prefix(msg: &Message, is_reply: bool, http: impl CacheHttp) -> (String, usize) {
let mut nick = match msg.member(http).await {
Ok(Member {
nick: Some(nick), ..
@ -72,7 +71,6 @@ async fn create_prefix(msg: &Message, is_reply: bool, http: impl CacheHttp) -> (
nick = Cow::Owned("polarbear".to_string());
}
let mut chars = nick.char_indices();
let first_char = chars.next().unwrap().1;
let second_char_offset = chars.next().unwrap().0;