mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
fix ci-clippy2
This commit is contained in:
parent
ed25ea98ce
commit
eccdc18eb7
@ -1,5 +1,5 @@
|
|||||||
use crate::client::Client;
|
use crate::client::Client;
|
||||||
use common::event::{RequestPluginsEvent, RequestSiteInfoEvent};
|
use common::event::RequestSiteInfoEvent;
|
||||||
use common_net::msg::{world_msg::EconomyInfo, ServerGeneral};
|
use common_net::msg::{world_msg::EconomyInfo, ServerGeneral};
|
||||||
#[cfg(feature = "plugins")]
|
#[cfg(feature = "plugins")]
|
||||||
use common_state::plugin::PluginMgr;
|
use common_state::plugin::PluginMgr;
|
||||||
@ -12,7 +12,7 @@ use super::{event_dispatch, ServerEvent};
|
|||||||
pub(super) fn register_event_systems(builder: &mut DispatcherBuilder) {
|
pub(super) fn register_event_systems(builder: &mut DispatcherBuilder) {
|
||||||
event_dispatch::<RequestSiteInfoEvent>(builder);
|
event_dispatch::<RequestSiteInfoEvent>(builder);
|
||||||
#[cfg(feature = "plugins")]
|
#[cfg(feature = "plugins")]
|
||||||
event_dispatch::<RequestPluginsEvent>(builder);
|
event_dispatch::<common::event::RequestPluginsEvent>(builder);
|
||||||
}
|
}
|
||||||
|
|
||||||
#[cfg(not(feature = "worldgen"))]
|
#[cfg(not(feature = "worldgen"))]
|
||||||
@ -71,7 +71,7 @@ impl ServerEvent for RequestSiteInfoEvent {
|
|||||||
|
|
||||||
/// Send missing plugins to the client
|
/// Send missing plugins to the client
|
||||||
#[cfg(feature = "plugins")]
|
#[cfg(feature = "plugins")]
|
||||||
impl ServerEvent for RequestPluginsEvent {
|
impl ServerEvent for common::event::RequestPluginsEvent {
|
||||||
type SystemData<'a> = (ReadExpect<'a, PluginMgr>, ReadStorage<'a, Client>);
|
type SystemData<'a> = (ReadExpect<'a, PluginMgr>, ReadStorage<'a, Client>);
|
||||||
|
|
||||||
fn handle(
|
fn handle(
|
||||||
|
Loading…
Reference in New Issue
Block a user