summaryrefslogtreecommitdiffstats
path: root/src/tests
diff options
context:
space:
mode:
authorAram Drevekenin <aram@poor.dev>2020-05-03 19:54:56 +0200
committerAram Drevekenin <aram@poor.dev>2020-05-03 19:54:56 +0200
commitd4d4769f0a97acdb50155b28b660338d4b86b3c9 (patch)
treeadc9c9db3361a68b289fa23fb74678fd126186a9 /src/tests
parent62800d8b9eab0e12fdd2cb2440284e0195ead83a (diff)
style(lint): make clippy happy on all channels
Diffstat (limited to 'src/tests')
-rw-r--r--src/tests/cases/test_utils.rs2
-rw-r--r--src/tests/cases/ui.rs8
2 files changed, 5 insertions, 5 deletions
diff --git a/src/tests/cases/test_utils.rs b/src/tests/cases/test_utils.rs
index 0cdcc5b..50cd30e 100644
--- a/src/tests/cases/test_utils.rs
+++ b/src/tests/cases/test_utils.rs
@@ -121,7 +121,7 @@ pub fn os_input_output_factory(
writeln!(&mut stdout, "{}", output).unwrap();
}
}),
- None => Box::new({ move |_output: String| {} }),
+ None => Box::new(move |_output: String| {}),
};
OsInputOutput {
diff --git a/src/tests/cases/ui.rs b/src/tests/cases/ui.rs
index 6464272..b3faac1 100644
--- a/src/tests/cases/ui.rs
+++ b/src/tests/cases/ui.rs
@@ -1012,7 +1012,7 @@ fn traffic_with_host_names() {
let dns_client = create_fake_dns_client(ips_to_hostnames);
let on_winch = create_fake_on_winch(false);
let cleanup = Box::new(|| {});
- let write_to_stdout = Box::new({ move |_output: String| {} });
+ let write_to_stdout = Box::new(move |_output: String| {});
let os_input = OsInputOutput {
network_interfaces: get_interfaces(),
@@ -1121,7 +1121,7 @@ fn truncate_long_hostnames() {
let dns_client = create_fake_dns_client(ips_to_hostnames);
let on_winch = create_fake_on_winch(false);
let cleanup = Box::new(|| {});
- let write_to_stdout = Box::new({ move |_output: String| {} });
+ let write_to_stdout = Box::new(move |_output: String| {});
let os_input = OsInputOutput {
network_interfaces: get_interfaces(),
@@ -1229,7 +1229,7 @@ fn no_resolve_mode() {
let dns_client = None;
let on_winch = create_fake_on_winch(false);
let cleanup = Box::new(|| {});
- let write_to_stdout = Box::new({ move |_output: String| {} });
+ let write_to_stdout = Box::new(move |_output: String| {});
let os_input = OsInputOutput {
network_interfaces: get_interfaces(),
@@ -1273,7 +1273,7 @@ fn traffic_with_winch_event() {
let dns_client = create_fake_dns_client(HashMap::new());
let on_winch = create_fake_on_winch(true);
let cleanup = Box::new(|| {});
- let write_to_stdout = Box::new({ move |_output: String| {} });
+ let write_to_stdout = Box::new(move |_output: String| {});
let os_input = OsInputOutput {
network_interfaces: get_interfaces(),