summaryrefslogtreecommitdiff
path: root/src/client/client.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/client/client.rs')
-rw-r--r--src/client/client.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client/client.rs b/src/client/client.rs
index 37128b3..c833550 100644
--- a/src/client/client.rs
+++ b/src/client/client.rs
@@ -11,7 +11,7 @@ pub struct Client<C: Connection> {
hostname: String,
device_name: String,
os: &'static str,
- cpu_arch: String,
+ cpu_arch: &'static str,
distro: String,
desktop_env: DesktopEnv,
username: String,
@@ -58,7 +58,7 @@ impl<C: Connection> Client<C> {
hostname: gethostname().into_string().unwrap_or_default(),
device_name: whoami::devicename(),
os: std::env::consts::OS,
- cpu_arch: std::env::consts::ARCH.to_string(),
+ cpu_arch: std::env::consts::ARCH,
distro: whoami::distro(),
desktop_env: whoami::desktop_env(),
username: whoami::username(),