Skip to content
Myr

Format with rustfmt 2019-09-08

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by David Tolnay · committed by David Tolnay · parent 2c7d3ca · Browse files · 1 file+16 added−3 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+16 added−3 removed

  • tests:+16 added−3 removed

1 file+16 added−3 removed

modified:tests/macros.rs+16 added-3 removed
20 unmodified lines
21}2223#[test]24fn test_downcast() {25 assert_eq!("oh no!", bail_literal().unwrap_err().downcast::<&str>().unwrap());26 assert_eq!("oh no!", bail_fmt().unwrap_err().downcast::<String>().unwrap());27 assert_eq!("oh no!", bail_error().unwrap_err().downcast::<io::Error>().unwrap().to_string());25 assert_eq!(26 "oh no!",27 bail_literal().unwrap_err().downcast::<&str>().unwrap(),28 );29 assert_eq!(30 "oh no!",31 bail_fmt().unwrap_err().downcast::<String>().unwrap(),32 );33 assert_eq!(34 "oh no!",35 bail_error()36 .unwrap_err()37 .downcast::<io::Error>()38 .unwrap()39 .to_string(),40 );41}4243#[test]44fn test_ensure() {
19 unmodified lines