MAINT: Use ? operator instead of try!() macro

This commit is contained in:
bluss
2019-09-02 22:04:44 +02:00
parent c7424b8113
commit f952e2c788
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -472,7 +472,7 @@ fn test_string() {
// Test Error trait / try
let t = || -> Result<(), Box<Error>> {
let mut t = ArrayString::<[_; 2]>::new();
try!(t.try_push_str(text));
t.try_push_str(text)?;
Ok(())
}();
assert!(t.is_err());