aboutsummaryrefslogtreecommitdiff
path: root/src/client/bridge/gateway/mod.rs
diff options
context:
space:
mode:
authorZeyla Hellyer <[email protected]>2018-01-10 12:47:06 -0800
committerZeyla Hellyer <[email protected]>2018-01-10 12:47:06 -0800
commit1e5c76ed7384e50f241b685e60ca0261a91beb80 (patch)
tree848b08306a026d6af58bd571c3cef528d6eb6808 /src/client/bridge/gateway/mod.rs
parentFix no-model compiler warnings (diff)
downloadserenity-1e5c76ed7384e50f241b685e60ca0261a91beb80.tar.xz
serenity-1e5c76ed7384e50f241b685e60ca0261a91beb80.zip
Simplify ShardManager creation
Instead of creating different `new` functions for every bridged feature combination, accept a struct of options. Structs can have conditional fields, unlike functions which can not have conditional arguments.
Diffstat (limited to 'src/client/bridge/gateway/mod.rs')
-rw-r--r--src/client/bridge/gateway/mod.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/bridge/gateway/mod.rs b/src/client/bridge/gateway/mod.rs
index 23d2864..2907877 100644
--- a/src/client/bridge/gateway/mod.rs
+++ b/src/client/bridge/gateway/mod.rs
@@ -56,7 +56,7 @@ mod shard_queuer;
mod shard_runner;
mod shard_runner_message;
-pub use self::shard_manager::ShardManager;
+pub use self::shard_manager::{ShardManager, ShardManagerOptions};
pub use self::shard_manager_monitor::ShardManagerMonitor;
pub use self::shard_messenger::ShardMessenger;
pub use self::shard_queuer::ShardQueuer;