From 1a8a6eca29afe2178c6cf17abce9ab7e229ca26c Mon Sep 17 00:00:00 2001 From: Nathan Perry Date: Thu, 24 Jan 2019 20:03:25 -0500 Subject: improve imports further and fix compile warnings --- src/commands/roll.rs | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'src/commands/roll.rs') diff --git a/src/commands/roll.rs b/src/commands/roll.rs index 217b3a4..b3f7a38 100644 --- a/src/commands/roll.rs +++ b/src/commands/roll.rs @@ -1,14 +1,15 @@ +use rand::prelude::*; +use regex::Regex; use serenity::{ - prelude::*, framework::standard::Args, model::channel::Message, + prelude::*, }; -use regex::Regex; -use rand::prelude::*; -use crate::Result; - -use super::send; +use crate::{ + commands::send, + Result, +}; lazy_static! { static ref ROLL_REGEX: Regex = Regex::new(r"([0-9]+)?(?:d([0-9]+)(?:\s+\+\s+([0-9]+))?)") -- cgit v1.3.1