Assert length of an EC response from the windows driver It's always 20 more than expected. TODO: Figure out why
(left: N, right: N)
| 265 | /// Assert length of an EC response from the windows driver |
| 266 | /// It's always 20 more than expected. TODO: Figure out why |
| 267 | pub fn assert_win_len<N: Num + std::fmt::Debug + Ord + NumCast + Copy>(left: N, right: N) { |
| 268 | #[cfg(windows)] |
| 269 | assert_eq!(left, right + NumCast::from(20).unwrap()); |
| 270 | #[cfg(not(windows))] |
| 271 | assert_eq!(left, right); |
| 272 | } |
| 273 | |
| 274 | pub fn format_duration(duration: &Duration) -> String { |
| 275 | let hours = duration.as_secs() / 3600; |
no outgoing calls
no test coverage detected