review comments

This commit is contained in:
Esteban Küber
2024-08-08 14:43:27 +00:00
parent ae696f847d
commit 95c1c34fff
5 changed files with 12 additions and 6 deletions

View File

@@ -48,6 +48,12 @@ pub enum HumanReadableErrorType {
Short,
}
impl HumanReadableErrorType {
pub fn short(&self) -> bool {
*self == HumanReadableErrorType::Short
}
}
#[derive(Clone, Copy, Debug)]
struct Margin {
/// The available whitespace in the left that can be consumed when centering.