aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/context.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/context.rs b/src/context.rs
index 8032212..89e2c3e 100644
--- a/src/context.rs
+++ b/src/context.rs
@@ -77,4 +77,5 @@ async fn get_hostname() -> Result<String> {
77 } else { 77 } else {
78 std::env::var("HOSTNAME").context("reading HOSTNAME env var") 78 std::env::var("HOSTNAME").context("reading HOSTNAME env var")
79 } 79 }
80 .map(|hostname| hostname.trim().to_string())
80} 81}