Use fmt::Result
This commit is contained in:
parent
ba947a35f8
commit
db2578ea92
@ -39,7 +39,7 @@ pub enum ContextCreationError {
|
|||||||
}
|
}
|
||||||
|
|
||||||
impl fmt::Display for ContextCreationError {
|
impl fmt::Display for ContextCreationError {
|
||||||
fn fmt(&self, f: &mut fmt::Formatter) -> Result<(), fmt::Error> {
|
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
|
||||||
use ContextCreationError::*;
|
use ContextCreationError::*;
|
||||||
match *self {
|
match *self {
|
||||||
AlreadyExists => write!(f, "A Libnotify context already exists."),
|
AlreadyExists => write!(f, "A Libnotify context already exists."),
|
||||||
@ -56,7 +56,7 @@ pub enum NotificationCreationError {
|
|||||||
}
|
}
|
||||||
|
|
||||||
impl fmt::Display for NotificationCreationError {
|
impl fmt::Display for NotificationCreationError {
|
||||||
fn fmt(&self, f: &mut fmt::Formatter) -> Result<(), fmt::Error> {
|
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
|
||||||
use NotificationCreationError::*;
|
use NotificationCreationError::*;
|
||||||
match *self {
|
match *self {
|
||||||
NulError => write!(f, "Argument contains a nul character."),
|
NulError => write!(f, "Argument contains a nul character."),
|
||||||
|
Loading…
Reference in New Issue
Block a user