mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-04-28 19:54:35 +00:00
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:
parent
7b83b7ec1f
commit
0405beb2d8
@ -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};
|
||||
|
Loading…
Reference in New Issue
Block a user