capo 0.0.1

Linux capabilities interface
Documentation
// Copyright (C) 2020 - Will Glozer. All rights reserved.

use std::fmt;
use errno::Errno;

#[derive(Clone, Debug, Eq, PartialEq)]
pub struct Error(Errno);

impl From<Errno> for Error {
    fn from(err: Errno) -> Self {
        Self(err)
    }
}

impl std::error::Error for Error {}

impl fmt::Display for Error {
    fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
        write!(f, "{}", self.0)
    }
}