Fix more linter warnings
This commit is contained in:
@@ -599,8 +599,7 @@ impl Command<State, Extras> for MaskCommand {
|
|||||||
|
|
||||||
if let Some(channel) = channel
|
if let Some(channel) = channel
|
||||||
&& let Some(call_id) = channel.call_id
|
&& let Some(call_id) = channel.call_id
|
||||||
{
|
&& let Some(mut participant) = Participant::get_for_user_and_channel_in_call(
|
||||||
if let Some(mut participant) = Participant::get_for_user_and_channel_in_call(
|
|
||||||
ctx.extras.user.id,
|
ctx.extras.user.id,
|
||||||
ctx.event.channel_id.get(),
|
ctx.event.channel_id.get(),
|
||||||
call_id,
|
call_id,
|
||||||
@@ -621,7 +620,6 @@ impl Command<State, Extras> for MaskCommand {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
ctx.send().content(mask_message).await?;
|
ctx.send().content(mask_message).await?;
|
||||||
|
|
||||||
|
|||||||
+2
-2
@@ -111,9 +111,9 @@ pub fn u64_to_i64(u: u64) -> i64 {
|
|||||||
/// Returns:
|
/// Returns:
|
||||||
/// [`Option<(&str, &str)>`] - The splitted parts of the string, or [`None`] if no occurrences of
|
/// [`Option<(&str, &str)>`] - The splitted parts of the string, or [`None`] if no occurrences of
|
||||||
/// `pattern` were found in `s`.
|
/// `pattern` were found in `s`.
|
||||||
pub fn split_at_nth_from_end<'a, 'b>(
|
pub fn split_at_nth_from_end<'a>(
|
||||||
s: &'a str,
|
s: &'a str,
|
||||||
pattern: &'b str,
|
pattern: &str,
|
||||||
n: usize,
|
n: usize,
|
||||||
) -> Option<(&'a str, &'a str)> {
|
) -> Option<(&'a str, &'a str)> {
|
||||||
let mut end = s.len();
|
let mut end = s.len();
|
||||||
|
|||||||
Reference in New Issue
Block a user