Skip to content

Commit

Permalink
Fix all unused code warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
morr0ne committed Sep 13, 2024
1 parent 9bd3f87 commit c408038
Show file tree
Hide file tree
Showing 3 changed files with 262 additions and 1 deletion.
1 change: 1 addition & 0 deletions gen/src/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ pub fn generate_client_code(protocols: &[Protocol]) -> TokenStream {
inner_modules.push(quote! {
#(#docs)*
pub mod #module_name {
#[allow(unused)]
use futures_util::SinkExt;

#(#enums)*
Expand Down
2 changes: 1 addition & 1 deletion src/client/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ pub mod protocol;
use downcast_rs::{impl_downcast, DowncastSync};
pub use error::{Error, Result};

use crate::wire::{Message, Socket};
use crate::wire::Message;

pub trait Dispatcher: DowncastSync {
fn dispatch(&self, message: &Message);
Expand Down
Loading

0 comments on commit c408038

Please sign in to comment.