Reduce code comment lines
Make the comment more terse by using 'info' instead of 'information' and reduce the line count by 2.
This commit is contained in:
parent
d595f421c6
commit
23c77275b1
|
@ -56,8 +56,7 @@ impl fmt::Display for ParseError {
|
||||||
match self {
|
match self {
|
||||||
ParseError::Amount(error) => write_err!(f, "invalid amount"; error),
|
ParseError::Amount(error) => write_err!(f, "invalid amount"; error),
|
||||||
ParseError::Denomination(error) => write_err!(f, "invalid denomination"; error),
|
ParseError::Denomination(error) => write_err!(f, "invalid denomination"; error),
|
||||||
// We consider this to not be a source because it currently doesn't contain useful
|
// We consider this to not be a source because it currently doesn't contain useful info.
|
||||||
// information
|
|
||||||
ParseError::MissingDenomination(_) =>
|
ParseError::MissingDenomination(_) =>
|
||||||
f.write_str("the input doesn't contain a denomination"),
|
f.write_str("the input doesn't contain a denomination"),
|
||||||
}
|
}
|
||||||
|
@ -70,8 +69,7 @@ impl std::error::Error for ParseError {
|
||||||
match self {
|
match self {
|
||||||
ParseError::Amount(error) => Some(error),
|
ParseError::Amount(error) => Some(error),
|
||||||
ParseError::Denomination(error) => Some(error),
|
ParseError::Denomination(error) => Some(error),
|
||||||
// We consider this to not be a source because it currently doesn't contain useful
|
// We consider this to not be a source because it currently doesn't contain useful info.
|
||||||
// information
|
|
||||||
ParseError::MissingDenomination(_) => None,
|
ParseError::MissingDenomination(_) => None,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue