diff options
| author | Fuwn <[email protected]> | 2021-05-23 13:56:26 -0700 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2021-05-23 13:56:26 -0700 |
| commit | e33790931d57137f9ccd66e19b2bcc42cc9caa84 (patch) | |
| tree | d3467ff85d20deeeb7b81433fcac7745162d302c | |
| parent | docs(global): add new documentation (diff) | |
| download | whirl-e33790931d57137f9ccd66e19b2bcc42cc9caa84.tar.xz whirl-e33790931d57137f9ccd66e19b2bcc42cc9caa84.zip | |
refactor(server): fix some unnecessarily exposed modules, allow dead code for constants
| -rw-r--r-- | crates/whirl_server/src/cmd/constants.rs | 2 | ||||
| -rw-r--r-- | crates/whirl_server/src/lib.rs | 4 | ||||
| -rw-r--r-- | crates/whirl_server/src/net/constants.rs | 2 | ||||
| -rw-r--r-- | crates/whirl_server/src/net/structure.rs | 6 |
4 files changed, 9 insertions, 5 deletions
diff --git a/crates/whirl_server/src/cmd/constants.rs b/crates/whirl_server/src/cmd/constants.rs index 22d29c1..1271a9a 100644 --- a/crates/whirl_server/src/cmd/constants.rs +++ b/crates/whirl_server/src/cmd/constants.rs @@ -1,6 +1,8 @@ // Copyleft (ɔ) 2021-2021 The Whirlsplash Collective // SPDX-License-Identifier: GPL-3.0-only +#![allow(dead_code)] + pub const LONGLOC: i32 = 1; pub const STATE: i32 = 2; pub const PROP: i32 = 3; diff --git a/crates/whirl_server/src/lib.rs b/crates/whirl_server/src/lib.rs index 9c3e9d0..584b0b0 100644 --- a/crates/whirl_server/src/lib.rs +++ b/crates/whirl_server/src/lib.rs @@ -16,9 +16,9 @@ extern crate log; #[macro_use] extern crate async_trait; -pub mod cmd; +mod cmd; mod interaction; -pub mod net; +mod net; pub mod distributor; pub mod hub; diff --git a/crates/whirl_server/src/net/constants.rs b/crates/whirl_server/src/net/constants.rs index 169b461..9073c49 100644 --- a/crates/whirl_server/src/net/constants.rs +++ b/crates/whirl_server/src/net/constants.rs @@ -1,6 +1,8 @@ // Copyleft (ɔ) 2021-2021 The Whirlsplash Collective // SPDX-License-Identifier: GPL-3.0-only +#![allow(dead_code)] + pub const VAR_PROTOCOL_VERSION: i32 = 24; pub const STATECMD: i32 = 2; pub const MAXCMD: i32 = 255; diff --git a/crates/whirl_server/src/net/structure.rs b/crates/whirl_server/src/net/structure.rs index 1fb1051..8c9d137 100644 --- a/crates/whirl_server/src/net/structure.rs +++ b/crates/whirl_server/src/net/structure.rs @@ -5,9 +5,9 @@ pub struct NetworkProperty { pub prop_id: i32, pub value: String, } -impl NetworkProperty { - pub fn new() -> Self { NetworkProperty::default() } -} +// impl NetworkProperty { +// pub fn new() -> Self { NetworkProperty::default() } +// } impl Default for NetworkProperty { fn default() -> Self { NetworkProperty { |