Skip to content

Commit 613940f

Browse files
authored
m: Fix new nightly warning (#1176)
Signed-off-by: John Nunley <[email protected]>
1 parent 75cb9d1 commit 613940f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/path/arg.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ fn test_arg() {
1313
use std::borrow::Borrow;
1414

1515
let t: &str = "hello";
16-
assert_eq!("hello", t.as_str().unwrap());
16+
assert_eq!("hello", Arg::as_str(&t).unwrap());
1717
assert_eq!("hello".to_owned(), Arg::to_string_lossy(&t));
1818
assert_eq!(cstr!("hello"), Borrow::borrow(&t.as_cow_c_str().unwrap()));
1919
assert_eq!(cstr!("hello"), Borrow::borrow(&t.into_c_str().unwrap()));

0 commit comments

Comments
 (0)