Commit 48051e4
authored
Rollup merge of rust-lang#65266 - rust-lang:must-use-join, r=dtolnay
Mark Path::join as must_use
I've accidentally did `mut_path_buf.jon(a_path);`, expecting this to be an in-place modification. Seems like we can easily warn in such cases?1 file changed
+1
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2219 | 2219 | | |
2220 | 2220 | | |
2221 | 2221 | | |
| 2222 | + | |
2222 | 2223 | | |
2223 | 2224 | | |
2224 | 2225 | | |
| |||
0 commit comments