sued 0.24.2

shut up editor - a minimalist line-based text editor written in Rust
Documentation
//! This module contains the `ExitStatus` enum, which is used to represent the exit status of a `sued` command.
//!
//! This file is part of sued.
//!
//! Visit `main.rs` and `lib.rs` for context and usage.
//!
//! sued is free software licensed under the Apache License, Version 2.0.

pub enum ExitStatus {
    Success(String),
    Failure(String),
}

impl std::fmt::Display for ExitStatus {
    fn fmt(&self, fmt: &mut std::fmt::Formatter) -> std::fmt::Result {
        match self {
            ExitStatus::Success(s) => write!(fmt, "{}", s),
            ExitStatus::Failure(f) => write!(fmt, "{}", f),
        }
    }
}