diff options
| author | Fuwn <[email protected]> | 2021-05-23 13:56:26 +0000 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2021-05-23 13:56:26 +0000 |
| commit | 1eb5ea4108694731b9039238beae14bc58a069a9 (patch) | |
| tree | 9fd498eef32f687999d3ef45f03769c9bc462017 /crates/whirl_server/src/net | |
| parent | docs(global): add new documentation (diff) | |
| download | whirl-1eb5ea4108694731b9039238beae14bc58a069a9.tar.xz whirl-1eb5ea4108694731b9039238beae14bc58a069a9.zip | |
refactor(server): fix some unnecessarily exposed modules, allow dead code for constants
Diffstat (limited to 'crates/whirl_server/src/net')
| -rw-r--r-- | crates/whirl_server/src/net/constants.rs | 2 | ||||
| -rw-r--r-- | crates/whirl_server/src/net/structure.rs | 6 |
2 files changed, 5 insertions, 3 deletions
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 { |