From 57d892452a4f1d65b0428385b25c3882bf93bc51 Mon Sep 17 00:00:00 2001 From: UsernameSwift Date: Sat, 25 Jun 2022 09:40:56 -0400 Subject: [PATCH] Undid unnecessary network code --- src/functions/network.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/functions/network.rs b/src/functions/network.rs index 15c7689..f69f72e 100755 --- a/src/functions/network.rs +++ b/src/functions/network.rs @@ -1,9 +1,6 @@ use crate::internal::*; -pub fn set_hostname(mut hostname: &str) { - if hostname == "" { - hostname = "crystal"; - } +pub fn set_hostname(hostname: &str) { println!("Setting hostname to {}", hostname); files::create_file("/mnt/etc/hostname"); files_eval(