chiark / gitweb /
Remove duplicate default() fn
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 21 Feb 2021 20:11:52 +0000 (20:11 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 21 Feb 2021 20:11:52 +0000 (20:11 +0000)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
src/imports.rs
wdriver.rs

index 9a3644b5f44faf888b6fd4d3ed1f8ddc0c888fe4..cbe0c9672df95e4e267b5d628ead2877675db2ab 100644 (file)
@@ -2,6 +2,7 @@
 // SPDX-License-Identifier: AGPL-3.0-or-later
 // There is NO WARRANTY.
 
+pub use otter_base;
 pub use otter_base::imports::*;
 
 pub use anyhow;
index 4abe478110c46f48067362381cd4b77f1bfd7394..f3495bcc843941581ff862e495fcd6986cdbf41b 100644 (file)
@@ -43,6 +43,8 @@ pub use std::process::{self, Command, Stdio};
 pub use std::thread::{self, sleep};
 pub use std::time::{self, Duration};
 
+pub use otter_base::misc::default;
+
 pub use otter::ensure_eq;
 pub use otter::commands::{MgmtCommand, MgmtResponse};
 pub use otter::commands::{MgmtGameInstruction, MgmtGameResponse};
@@ -64,8 +66,6 @@ pub type AE = anyhow::Error;
 
 pub const URL: &str = "http://localhost:8000";
 
-pub fn default<T:Default>() -> T { Default::default() }
-
 use t4::Capabilities;
 use once_cell::sync::OnceCell;
 use otter::config::DAEMON_STARTUP_REPORT;