From 0405beb2d82148c25d363491afc74b05dc0e124c Mon Sep 17 00:00:00 2001 From: David Gibson Date: Wed, 21 Apr 2021 14:50:06 +1000 Subject: [PATCH] agent: Remove unused Default implementation for NamespaceType Currently we implement the Default trait for NamespaceType. It doesn't really make sense to have a default for this type though - you really need to know what type of namespace you're setting. In fact the Default implementation is never used, so we can just drop it. Signed-off-by: David Gibson --- src/agent/src/namespace.rs | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/agent/src/namespace.rs b/src/agent/src/namespace.rs index 20dd2d9596..8f14c8e4c7 100644 --- a/src/agent/src/namespace.rs +++ b/src/agent/src/namespace.rs @@ -178,12 +178,6 @@ impl fmt::Debug for NamespaceType { } } -impl Default for NamespaceType { - fn default() -> Self { - NamespaceType::Ipc - } -} - #[cfg(test)] mod tests { use super::{Namespace, NamespaceType};