From 60b60e03430d2355cd4bca2dd860e3e80ecfced7 Mon Sep 17 00:00:00 2001 From: Pascal Hartig Date: Fri, 2 Jun 2023 14:57:59 +0100 Subject: [PATCH] Make error mod public --- daemonize/src/error.rs | 2 +- daemonize/src/lib.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/daemonize/src/error.rs b/daemonize/src/error.rs index 0156d1503..577c91e13 100644 --- a/daemonize/src/error.rs +++ b/daemonize/src/error.rs @@ -3,7 +3,7 @@ pub type Errno = libc::c_int; /// This error type for `Daemonize` `start` method. #[derive(Debug, PartialEq, Eq, PartialOrd, Ord, Clone)] pub struct Error { - kind: ErrorKind, + pub kind: ErrorKind, } /// This error type for `Daemonize` `start` method. diff --git a/daemonize/src/lib.rs b/daemonize/src/lib.rs index 5b7eb93e2..f4e1055ca 100644 --- a/daemonize/src/lib.rs +++ b/daemonize/src/lib.rs @@ -57,9 +57,9 @@ use std::os::unix::io::AsRawFd; use std::path::{Path, PathBuf}; use std::process::exit; -use self::error::{check_err, errno, ErrorKind}; +use self::error::{check_err, errno}; -pub use self::error::Error; +pub use self::error::{Error, ErrorKind}; #[derive(Debug, PartialEq, Eq, PartialOrd, Ord, Clone)] enum UserImpl {