Update src/main.rs
Co-authored-by: Richard Kuhnt <r15ch13+git@gmail.com>
This commit is contained in:
parent
cfa9867e3d
commit
73369978ca
@ -30,7 +30,7 @@ impl std::fmt::Display for AmdFanError {
|
|||||||
match self {
|
match self {
|
||||||
AmdFanError::InvalidPrefix => f.write_str("Card must starts with `card`."),
|
AmdFanError::InvalidPrefix => f.write_str("Card must starts with `card`."),
|
||||||
AmdFanError::InputTooShort => f.write_str(
|
AmdFanError::InputTooShort => f.write_str(
|
||||||
"Card must starts with `card` and ends with number. Given name is too short.",
|
"Card must start with `card` and ends with a number. The given name is too short.",
|
||||||
),
|
),
|
||||||
AmdFanError::InvalidSuffix(s) => {
|
AmdFanError::InvalidSuffix(s) => {
|
||||||
f.write_fmt(format_args!("Value after `card` is invalid {}", s))
|
f.write_fmt(format_args!("Value after `card` is invalid {}", s))
|
||||||
|
Loading…
Reference in New Issue
Block a user