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.
OsStr::to_str()
OsString::into_string()
1 parent 1de4242 commit 3273b19Copy full SHA for 3273b19
gio/src/subclass/application.rs
@@ -425,7 +425,7 @@ mod tests {
425
426
for arg in arguments {
427
// TODO: we need https://github.com/rust-lang/rust/issues/49802
428
- let a = arg.into_string().unwrap();
+ let a = arg.to_str().unwrap();
429
assert!(!a.starts_with("--local-"))
430
}
431
@@ -437,7 +437,7 @@ mod tests {
437
438
for (i, line) in arguments.iter().enumerate() {
439
440
- let l = line.clone().into_string().unwrap();
+ let l = line.to_str().unwrap();
441
if l.starts_with("--local-") {
442
rm.push(i)
443
0 commit comments