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 <david@gibson.dropbear.id.au>
This commit is contained in:
David Gibson 2021-04-21 14:50:06 +10:00
parent 7b83b7ec1f
commit 0405beb2d8

View File

@ -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};