Skip to content

Commit

Permalink
m: Fix new nightly warning (#1176)
Browse files Browse the repository at this point in the history
Signed-off-by: John Nunley <[email protected]>
  • Loading branch information
notgull authored Sep 27, 2024
1 parent 75cb9d1 commit 613940f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/path/arg.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ fn test_arg() {
use std::borrow::Borrow;

let t: &str = "hello";
assert_eq!("hello", t.as_str().unwrap());
assert_eq!("hello", Arg::as_str(&t).unwrap());
assert_eq!("hello".to_owned(), Arg::to_string_lossy(&t));
assert_eq!(cstr!("hello"), Borrow::borrow(&t.as_cow_c_str().unwrap()));
assert_eq!(cstr!("hello"), Borrow::borrow(&t.into_c_str().unwrap()));
Expand Down

0 comments on commit 613940f

Please sign in to comment.