Merge pull request #814 from tamird/sort-variants-again

maps: sort variants
reviewable/pr629/r77
Tamir Duberstein 1 year ago committed by GitHub
commit cb455febbb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -317,25 +317,25 @@ impl Map {
pub fn pin<P: AsRef<Path>>(&mut self, path: P) -> Result<(), PinError> { pub fn pin<P: AsRef<Path>>(&mut self, path: P) -> Result<(), PinError> {
match self { match self {
Self::Array(map) => map.pin(path), Self::Array(map) => map.pin(path),
Self::PerCpuArray(map) => map.pin(path), Self::BloomFilter(map) => map.pin(path),
Self::ProgramArray(map) => map.pin(path), Self::CpuMap(map) => map.pin(path),
Self::DevMap(map) => map.pin(path),
Self::DevMapHash(map) => map.pin(path),
Self::HashMap(map) => map.pin(path), Self::HashMap(map) => map.pin(path),
Self::LpmTrie(map) => map.pin(path),
Self::LruHashMap(map) => map.pin(path), Self::LruHashMap(map) => map.pin(path),
Self::PerCpuArray(map) => map.pin(path),
Self::PerCpuHashMap(map) => map.pin(path), Self::PerCpuHashMap(map) => map.pin(path),
Self::PerCpuLruHashMap(map) => map.pin(path), Self::PerCpuLruHashMap(map) => map.pin(path),
Self::PerfEventArray(map) => map.pin(path), Self::PerfEventArray(map) => map.pin(path),
Self::ProgramArray(map) => map.pin(path),
Self::Queue(map) => map.pin(path),
Self::SockHash(map) => map.pin(path), Self::SockHash(map) => map.pin(path),
Self::SockMap(map) => map.pin(path), Self::SockMap(map) => map.pin(path),
Self::BloomFilter(map) => map.pin(path),
Self::LpmTrie(map) => map.pin(path),
Self::Stack(map) => map.pin(path), Self::Stack(map) => map.pin(path),
Self::StackTraceMap(map) => map.pin(path), Self::StackTraceMap(map) => map.pin(path),
Self::Queue(map) => map.pin(path),
Self::CpuMap(map) => map.pin(path),
Self::DevMap(map) => map.pin(path),
Self::DevMapHash(map) => map.pin(path),
Self::XskMap(map) => map.pin(path),
Self::Unsupported(map) => map.pin(path), Self::Unsupported(map) => map.pin(path),
Self::XskMap(map) => map.pin(path),
} }
} }
} }

Loading…
Cancel
Save