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 a2d45dc commit 5d4ac65Copy full SHA for 5d4ac65
crates/cargo-test-support/src/paths.rs
@@ -211,6 +211,26 @@ impl CargoPathExt for Path {
211
}
212
213
214
+impl CargoPathExt for PathBuf {
215
+ fn rm_rf(&self) {
216
+ self.as_path().rm_rf()
217
+ }
218
+ fn mkdir_p(&self) {
219
+ self.as_path().mkdir_p()
220
221
+
222
+ fn ls_r(&self) -> Vec<PathBuf> {
223
+ self.as_path().ls_r()
224
225
226
+ fn move_in_time<F>(&self, travel_amount: F)
227
+ where
228
+ F: Fn(i64, u32) -> (i64, u32),
229
+ {
230
+ self.as_path().move_in_time(travel_amount)
231
232
+}
233
234
fn do_op<F>(path: &Path, desc: &str, mut f: F)
235
where
236
F: FnMut(&Path) -> io::Result<()>,
0 commit comments