Sebastian Thielrefactor359765a6 years agoHistory
11 lines · 346 B · Rust
RawDownload
fn assert_err_display<T: std::fmt::Debug, E: std::error::Error>(res: Result<T, E>, expected: impl AsRef<str>) {    match res {        Ok(v) => assert!(false, "Expected error '{}', got value {:?}", expected.as_ref(), v),        Err(err) => assert_eq!(err.to_string(), expected.as_ref()),    }} mod decode;mod encode;mod reader;mod write;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t