md-todo 0.1.1

Work with todos in markdown files.
Documentation
use thiserror::Error;

/// Possible errors in this library.
#[derive(Error, Debug)]
pub enum MDTodoError {
    /// Issue while parsing the todo.
    #[error("Issue parsing a todo")]
    TodoParseError,

    /// Represents a failure to read from input.
    #[error("Read error")]
    FileReadError { source: std::io::Error },

    /// The file changed since it was last read
    #[error("File changed error")]
    FileChanged,

    /// Not a directory
    #[error("Not a valid path or existing directory")]
    NotADir,

    /// Represents all other cases of `std::io::Error`.
    #[error(transparent)]
    IOError(#[from] std::io::Error),
}