string-err 0.1.1

String error type
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//! [`Display`] implementations for [`StringError`]

// Fmt
use std::fmt::{Display, Formatter, Result as FmtResult};

// Crate
use crate::{StringError, MaybeBacktrace};

/// `Display` implementation for all `StringError<E, B>`
impl<E: ?Sized, B: MaybeBacktrace> Display for StringError<E, B>
{
	fn fmt(&self, fmt: &mut Formatter) -> FmtResult {
		fmt.pad(&self.msg)
	}
}