Fix cannot usage in time.rs
This commit is contained in:
parent
df7daa815f
commit
3ad0618076
@ -1437,10 +1437,10 @@ impl TryFromFloatSecsError {
|
||||
const fn description(&self) -> &'static str {
|
||||
match self.kind {
|
||||
TryFromFloatSecsErrorKind::Negative => {
|
||||
"can not convert float seconds to Duration: value is negative"
|
||||
"cannot convert float seconds to Duration: value is negative"
|
||||
}
|
||||
TryFromFloatSecsErrorKind::OverflowOrNan => {
|
||||
"can not convert float seconds to Duration: value is either too big or NaN"
|
||||
"cannot convert float seconds to Duration: value is either too big or NaN"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user