We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 75cb9d1 commit 613940fCopy full SHA for 613940f
tests/path/arg.rs
@@ -13,7 +13,7 @@ fn test_arg() {
13
use std::borrow::Borrow;
14
15
let t: &str = "hello";
16
- assert_eq!("hello", t.as_str().unwrap());
+ assert_eq!("hello", Arg::as_str(&t).unwrap());
17
assert_eq!("hello".to_owned(), Arg::to_string_lossy(&t));
18
assert_eq!(cstr!("hello"), Borrow::borrow(&t.as_cow_c_str().unwrap()));
19
assert_eq!(cstr!("hello"), Borrow::borrow(&t.into_c_str().unwrap()));
0 commit comments