Skip to content

Commit

Permalink
Merge pull request #174 from tktcorporation/fix/cargo-hack
Browse files Browse the repository at this point in the history
🎨 fix some cargo hack
  • Loading branch information
tktcorporation authored Sep 28, 2022
2 parents 50304b5 + 7a31afc commit 102021c
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 1 deletion.
2 changes: 2 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ fmt:
cargo fmt --all
lint:
cargo +nightly clippy --all --all-targets --all-features --fix -Z unstable-options --allow-dirty --allow-staged
hack:
cargo hack check --each-feature --no-dev-deps --all
test:
cargo test --all-features
watch:
Expand Down
1 change: 0 additions & 1 deletion src/handler/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,6 @@ impl EventHandler for Handler {
new_voice_state: voice::VoiceState,
) {
let state = CurrentVoiceState::new(new_voice_state);
#[cfg(feature = "tts")]
let change = state.change_of_states(old_voice_state.as_ref());
let member = state.voice_member().await.expect("member is not received");
let voice = Voice::from(&ctx, member.guild_id).await;
Expand Down
3 changes: 3 additions & 0 deletions src/handler/usecase/text_to_speech/text_to_speech_base.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
#[cfg(feature = "tts")]
use super::super::interface::Speaker;
#[cfg(feature = "tts")]
use super::config;
#[cfg(feature = "tts")]
use super::text_to_speech_message::Message;
#[cfg(feature = "tts")]
use crate::infrastructure::GuildPath;

#[derive(Debug, PartialEq, Eq)]
Expand Down
3 changes: 3 additions & 0 deletions src/model/message.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
#[cfg(feature = "tts")]
use serenity::model::channel::Message as SerenityMessage;
#[cfg(feature = "tts")]
use std::env;

#[cfg(feature = "tts")]
pub struct Message {
pub msg: SerenityMessage,
}
Expand Down

0 comments on commit 102021c

Please sign in to comment.