Skip to content

Commit

Permalink
Fix warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
progval authored and spb committed Apr 14, 2024
1 parent f997e4e commit 51af180
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 7 deletions.
3 changes: 0 additions & 3 deletions sable_ircd/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
#![allow(rustdoc::private_intra_doc_links)]
#![allow(incomplete_features)]
#![feature(return_position_impl_trait_in_trait)]
#![feature(async_fn_in_trait)]
#![feature(type_alias_impl_trait)]
#![feature(trait_upcasting)]

//! IRC client server logic.
Expand Down
1 change: 0 additions & 1 deletion sable_ircd/src/utils/numeric_utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,3 @@ macro_rules! numeric_error {
}

pub use make_numeric;
pub use numeric_error;
7 changes: 5 additions & 2 deletions sable_network/src/network/wrapper/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ use crate::prelude::*;

/// A wrapper around a [`state::Server`]
pub struct Server<'a> {
network: &'a Network,
_network: &'a Network,
data: &'a state::Server,
}

Expand Down Expand Up @@ -33,7 +33,10 @@ impl<'a> super::ObjectWrapper<'a> for Server<'a> {
type Underlying = state::Server;

fn wrap(network: &'a Network, data: &'a state::Server) -> Self {
Self { network, data }
Self {
_network: network,
data,
}
}

fn raw(&self) -> &'a Self::Underlying {
Expand Down
1 change: 0 additions & 1 deletion sable_services/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
//!
//!

#![feature(return_position_impl_trait_in_trait)]
#![allow(incomplete_features)]

pub mod database;
Expand Down

0 comments on commit 51af180

Please sign in to comment.