From 2c15b2788eb18f45a5fd9780f06d80158236e976 Mon Sep 17 00:00:00 2001 From: Sukharev Mikhail Date: Tue, 11 Feb 2020 21:15:13 +0300 Subject: [PATCH] bump hostname version --- Cargo.toml | 2 +- src/types/mod.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index a728bcad..b09303f1 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -28,7 +28,7 @@ failure = "^0.1.5" failure_derive = "^0.1.5" futures-core = "0.3.0" futures-sink = "0.3.0" -hostname = "^0.1" +hostname = "^0.3" lazy_static = "1.4.0" lz4 = "1.23.1" pin-project = "0.4.5" diff --git a/src/types/mod.rs b/src/types/mod.rs index 49ace3cc..8ac640a9 100644 --- a/src/types/mod.rs +++ b/src/types/mod.rs @@ -1,7 +1,7 @@ use std::{borrow::Cow, collections::HashMap, fmt, mem, pin::Pin, sync::Mutex}; use chrono_tz::Tz; -use hostname::get_hostname; +use hostname::get; use lazy_static::lazy_static; @@ -114,7 +114,7 @@ impl Default for Context { fn default() -> Self { Self { server_info: ServerInfo::default(), - hostname: get_hostname().unwrap(), + hostname: get().unwrap().into_string().unwrap(), options: OptionsSource::default(), } }