Skip to content

Commit

Permalink
Reorder general.rs to match WATCHED_INHERENTS
Browse files Browse the repository at this point in the history
  • Loading branch information
smoelius committed Oct 22, 2023
1 parent f950346 commit 99af633
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,8 @@ fn main() {
let _ = is_empty_os(osstring.clone());
let _ = os_string_or_bytes(osstring.clone());

let _ = std::fs::write(path, "");
let _ = std::fs::write(PathBuf::from("x"), "");
let _ = std::fs::write(path, "");
let _ = std::fs::write(PathBuf::from("x"), "");
let _ = Command::new("ls").args(path);
let _ = std::fs::write("x", "");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,8 @@ fn main() {
let _ = is_empty_os(osstring.clone().into_boxed_os_str());
let _ = os_string_or_bytes(osstring.clone().into_encoded_bytes());

let _ = std::fs::write(path.as_os_str(), "");
let _ = std::fs::write(PathBuf::from("x").as_mut_os_str(), "");
let _ = std::fs::write(path.as_os_str(), "");
let _ = std::fs::write(PathBuf::from("x").into_boxed_path().into_path_buf(), "");
let _ = Command::new("ls").args(path.iter());
let _ = std::fs::write(Path::new("x"), "");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -194,16 +194,16 @@ LL | let _ = os_string_or_bytes(osstring.clone().into_encoded_bytes());
| ^^^^^^^^^^^^^^^^^^^^^ help: remove this

error: the receiver implements the required traits
--> $DIR/general.rs:79:32
--> $DIR/general.rs:79:46
|
LL | let _ = std::fs::write(path.as_os_str(), "");
| ^^^^^^^^^^^^ help: remove this
LL | let _ = std::fs::write(PathBuf::from("x").as_mut_os_str(), "");
| ^^^^^^^^^^^^^^^^ help: remove this

error: the receiver implements the required traits
--> $DIR/general.rs:80:46
--> $DIR/general.rs:80:32
|
LL | let _ = std::fs::write(PathBuf::from("x").as_mut_os_str(), "");
| ^^^^^^^^^^^^^^^^ help: remove this
LL | let _ = std::fs::write(path.as_os_str(), "");
| ^^^^^^^^^^^^ help: remove this

error: the receiver implements the required traits
--> $DIR/general.rs:81:46
Expand Down

0 comments on commit 99af633

Please sign in to comment.