Remove warnings

This commit is contained in:
hodasemi 2018-11-15 15:10:27 +01:00
parent e4dc5e2446
commit 67e26a4c68
3 changed files with 4 additions and 2 deletions

View file

@ -1,3 +1,5 @@
#![allow(non_snake_case)]
extern crate serenity;
extern crate parking_lot;

View file

@ -93,7 +93,7 @@ impl Play {
msg: &serenity::model::channel::Message,
url: &String,
) {
let mut source = match youtube_dl(&url) {
let source = match youtube_dl(&url) {
Ok(source) => source,
Err(why) => {
println!("Err starting source: {:?}", why);

View file

@ -1,7 +1,7 @@
use serenity;
use serenity::model::id::ChannelId;
use serenity::voice::ffmpeg;
use serenity::voice::{AudioSource, LockedAudio};
use serenity::voice::LockedAudio;
use std::cell::RefCell;
use std::ops::DerefMut;