From 792de8e49fa8a3c04bfb747adadf71572d753055 Mon Sep 17 00:00:00 2001 From: Owen Jacobson Date: Fri, 18 Jul 2025 01:12:36 -0400 Subject: Remove `pilcrow::cli::Error` from the lib crate's public interface. This might be the pettiest rude change I've ever made to a Rust program. If I saw this - or did this - in code _intend_ to be used as a library, I'd be appalled. --- src/umask.rs | 4 ---- 1 file changed, 4 deletions(-) (limited to 'src/umask.rs') diff --git a/src/umask.rs b/src/umask.rs index 32a82ad..6aef33a 100644 --- a/src/umask.rs +++ b/src/umask.rs @@ -100,15 +100,11 @@ impl fmt::Display for Umask { } } -/// Errors occurring during umask option parsing. #[derive(Debug, thiserror::Error)] pub enum Error { - /// Failed to parse a umask value from the input. #[error(transparent)] Parse(#[from] std::num::ParseIntError), - /// The provided umask contained invalid bits. (See the constants associated with [`Mode`] for - /// valid umask bits.) // We dont need to hold onto the actual umask value here - Clap does that for us, and prints // the value as the user input it, which beats anything we could do here. #[error("unknown bits in umask")] -- cgit v1.2.3