Stable features only
This commit is contained in:
parent
a2b0e2e8a8
commit
dbd4886a4f
@ -25,6 +25,7 @@ pub fn build_handlers(conf: Config) -> Vec<Box<dyn ServerInfo>> {
|
|||||||
assert_eq!(conf.version, "0.1.0");
|
assert_eq!(conf.version, "0.1.0");
|
||||||
let mut results: Vec<Box<dyn ServerInfo>> = vec![];
|
let mut results: Vec<Box<dyn ServerInfo>> = vec![];
|
||||||
for item in conf.entries {
|
for item in conf.entries {
|
||||||
|
#[allow(clippy::single_match)]
|
||||||
match item.handler_type.as_str() {
|
match item.handler_type.as_str() {
|
||||||
"minecraft" => results.push(Box::new(handlers::minecraft::Server::new(
|
"minecraft" => results.push(Box::new(handlers::minecraft::Server::new(
|
||||||
item.token,
|
item.token,
|
||||||
|
|||||||
@ -1,4 +1,3 @@
|
|||||||
#![feature(impl_trait_in_bindings)]
|
|
||||||
mod bot_runner;
|
mod bot_runner;
|
||||||
mod config_parser;
|
mod config_parser;
|
||||||
mod handlers;
|
mod handlers;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user