Style fixes to safelog errors.
This commit is contained in:
parent
326ab1a7ae
commit
9102948045
|
@ -6,12 +6,12 @@
|
|||
pub enum Error {
|
||||
/// Tried to call [`disable_safe_logging`](crate::disable_safe_logging), but
|
||||
/// `enforce_safe_logging` was already called.
|
||||
#[error("Cannot enable unsafe logging: safe logging is already enforced.")]
|
||||
#[error("Cannot enable unsafe logging: safe logging is already enforced")]
|
||||
AlreadySafe,
|
||||
|
||||
/// Tried to call [`enforce_safe_logging`](crate::enforce_safe_logging), but
|
||||
/// `disable_safe_logging` was already called.
|
||||
#[error("Cannot enforce safe logging: unsafe logging is already enabled.")]
|
||||
#[error("Cannot enforce safe logging: unsafe logging is already enabled")]
|
||||
AlreadyUnsafe,
|
||||
|
||||
/// One of the `enable`/`disable` functions was called so many times that we
|
||||
|
@ -19,6 +19,6 @@ pub enum Error {
|
|||
///
|
||||
/// This should generally be impossible, and probably represents an error in
|
||||
/// your program.
|
||||
#[error("Too many calls to enforce or disable safe logging.")]
|
||||
#[error("Too many calls to enforce or disable safe logging")]
|
||||
Overflow,
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue