Skip to content

Commit

Permalink
Fix clippy warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
LeonKowarschickKenbun committed Oct 22, 2023
1 parent b6408aa commit 2eeffe1
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion crates/robbb/src/events/message_create.rs
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ async fn handle_attachment_logging(ctx: &client::Context, msg: &Message) {
#[tracing::instrument(skip_all)]
async fn handle_quote(ctx: &client::Context, msg: &Message) -> Result<bool> {
lazy_static::lazy_static! {
static ref MSG_LINK_PATTERN: Regex = Regex::new(r#"<?https://(?:canary\.|ptb\.)?discord(?:app)?\.com/channels/(\d+)/(\d+)/(\d+)>?"#).unwrap();
static ref MSG_LINK_PATTERN: Regex = Regex::new(r"<?https://(?:canary\.|ptb\.)?discord(?:app)?\.com/channels/(\d+)/(\d+)/(\d+)>?").unwrap();
}
if msg.content.starts_with('!') {
return Ok(false);
Expand Down
2 changes: 1 addition & 1 deletion crates/robbb/src/logging.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
use robbb_util::log_error;
use tracing_futures::Instrument;
use tracing_subscriber::{
filter::FilterFn, prelude::__tracing_subscriber_SubscriberExt, EnvFilter,
};
Expand Down Expand Up @@ -66,6 +65,7 @@ pub async fn send_honeycomb_deploy_marker(api_key: &str) {
#[cfg(any(target_os = "linux", target_os = "windows"))]
pub async fn init_cpu_logging() {
use std::time::Duration;
use tracing_futures::Instrument;
tokio::spawn(
async {
loop {
Expand Down
2 changes: 1 addition & 1 deletion crates/robbb_commands/src/commands/poll.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ use poise::{serenity_prelude::ReactionType, Modal};
use regex::Regex;

lazy_static::lazy_static! {
static ref POLL_OPTION_START_OF_LINE_PATTERN: Regex = Regex::new(r#"^\s*-|^\s*\d\.|^\s*\*"#).unwrap();
static ref POLL_OPTION_START_OF_LINE_PATTERN: Regex = Regex::new(r"^\s*-|^\s*\d\.|^\s*\*").unwrap();
}

/// Get people to vote on your question
Expand Down

0 comments on commit 2eeffe1

Please sign in to comment.