summaryrefslogtreecommitdiffstats
path: root/src/os/shared.rs
diff options
context:
space:
mode:
authorBrooks Rady <b.j.rady@gmail.com>2020-12-27 00:28:03 +0000
committerGitHub <noreply@github.com>2020-12-27 00:28:03 +0000
commitacd1b0a95dbc2ee245648f2d5ef75494cf1cba54 (patch)
tree4b46564c9be7b89679f0b06f9913e4dee805e63c /src/os/shared.rs
parentfde53ddb3bcb769bc3474ba3d739d268619bf138 (diff)
parent1f508ddfb69e4bdedbb7fa3ba7034f8938eacbd9 (diff)
fix(dns): updated resolv-conf dependency
* fix(style): some clippy lints breaking the CI
Diffstat (limited to 'src/os/shared.rs')
-rw-r--r--src/os/shared.rs8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/os/shared.rs b/src/os/shared.rs
index 4ef25a9..ae42022 100644
--- a/src/os/shared.rs
+++ b/src/os/shared.rs
@@ -35,9 +35,11 @@ impl Iterator for TerminalEvents {
pub(crate) fn get_datalink_channel(
interface: &NetworkInterface,
) -> Result<Box<dyn DataLinkReceiver>, GetInterfaceErrorKind> {
- let mut config = Config::default();
- config.read_timeout = Some(time::Duration::new(1, 0));
- config.read_buffer_size = 65536;
+ let config = Config {
+ read_timeout: Some(time::Duration::new(1, 0)),
+ read_buffer_size: 65536,
+ ..Default::default()
+ };
match datalink::channel(interface, config) {
Ok(Ethernet(_tx, rx)) => Ok(rx),