File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -284,7 +284,7 @@ pub fn scripted_fixture_read_only_standalone(script_name: impl AsRef<Path>) -> R
284
284
/// the tempdir is returned. It will be removed automatically, courtesy of [`tempfile::TempDir`].
285
285
///
286
286
/// Note that `script_name` is only executed once, so the data can be copied from its read-only location.
287
- pub fn scripted_fixture_writable ( script_name : & str ) -> Result < tempfile:: TempDir > {
287
+ pub fn scripted_fixture_writable ( script_name : impl AsRef < Path > ) -> Result < tempfile:: TempDir > {
288
288
scripted_fixture_writable_with_args ( script_name, None :: < String > , Creation :: CopyFromReadOnly )
289
289
}
290
290
@@ -296,7 +296,7 @@ pub fn scripted_fixture_writable_standalone(script_name: &str) -> Result<tempfil
296
296
/// Like [`scripted_fixture_writable()`], but passes `args` to `script_name` while providing control over
297
297
/// the way files are created with `mode`.
298
298
pub fn scripted_fixture_writable_with_args (
299
- script_name : & str ,
299
+ script_name : impl AsRef < Path > ,
300
300
args : impl IntoIterator < Item = impl Into < String > > ,
301
301
mode : Creation ,
302
302
) -> Result < tempfile:: TempDir > {
@@ -313,7 +313,7 @@ pub fn scripted_fixture_writable_with_args_standalone(
313
313
}
314
314
315
315
fn scripted_fixture_writable_with_args_inner (
316
- script_name : & str ,
316
+ script_name : impl AsRef < Path > ,
317
317
args : impl IntoIterator < Item = impl Into < String > > ,
318
318
mode : Creation ,
319
319
root : DirectoryRoot ,
You can’t perform that action at this time.
0 commit comments