From f70c7d5dfe918689f7bc471cf87c33f12b918801 Mon Sep 17 00:00:00 2001 From: Titouan Rigoudy Date: Sun, 29 Aug 2021 17:34:49 +0200 Subject: [PATCH] Remove superfluous version constants. --- client/src/client.rs | 5 +---- proto/src/config.rs | 3 --- 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/client/src/client.rs b/client/src/client.rs index 9ed4f93..9f680ad 100644 --- a/client/src/client.rs +++ b/client/src/client.rs @@ -82,10 +82,7 @@ impl Client { ) .unwrap(); - let version = server::Version { - major: config::VER_MAJOR, - minor: config::VER_MINOR, - }; + let version = server::Version::default(); self.send_to_server(credentials.into_login_request(version).into()); diff --git a/proto/src/config.rs b/proto/src/config.rs index f1ded51..bb9b429 100644 --- a/proto/src/config.rs +++ b/proto/src/config.rs @@ -1,6 +1,3 @@ -pub const VER_MAJOR: u32 = 181; -pub const VER_MINOR: u32 = 100; - pub const USERNAME: &'static str = "solstice"; // The password is not used for much, and sent unencrypted over the wire, so // why not even check it in to git