nushell/crates/nu-command/src/filesystem
Ian Manske c98960d053
Take owned Read and Write (#12909)
# Description
As @YizhePKU pointed out, the [Rust API
guidelines](https://rust-lang.github.io/api-guidelines/interoperability.html#generic-readerwriter-functions-take-r-read-and-w-write-by-value-c-rw-value)
recommend that generic functions take readers and writers by value and
not by reference. This PR changes `copy_with_interupt` and few other
places to take owned `Read` and `Write` instead of mutable references.
2024-05-20 15:10:36 +02:00
..
cd.rs Implement PWD recovery (#12779) 2024-05-10 11:06:33 -05:00
du.rs ListStream touchup (#12524) 2024-05-05 16:00:59 +00:00
glob.rs Migrate to a new PWD API (part 2) (#12749) 2024-05-07 18:17:49 +03:00
ls.rs Allow ls works inside dir with [] brackets (#12625) 2024-05-06 14:01:32 +08:00
mktemp.rs Migrate to a new PWD API (#12603) 2024-05-03 14:33:09 +03:00
mod.rs remove old mv command in favor of umv (renamed to mv) (#12022) 2024-03-01 09:37:23 +08:00
open.rs Use CommandType in more places (#12832) 2024-05-18 23:37:31 +00:00
rm.rs Refactor message printing in rm (#12799) 2024-05-09 13:36:47 +08:00
save.rs Take owned Read and Write (#12909) 2024-05-20 15:10:36 +02:00
start.rs Add command_prelude module (#12291) 2024-03-26 21:17:30 +00:00
touch.rs Remove usages of Call::positional_nth (#12871) 2024-05-15 19:59:42 +02:00
ucp.rs Migrate to a new PWD API (#12603) 2024-05-03 14:33:09 +03:00
umkdir.rs Migrate to a new PWD API (#12603) 2024-05-03 14:33:09 +03:00
umv.rs Migrate to a new PWD API (#12603) 2024-05-03 14:33:09 +03:00
util.rs making ls and du supports rest parameters. (#12327) 2024-04-13 15:03:17 +00:00
watch.rs Migrate to a new PWD API (part 2) (#12749) 2024-05-07 18:17:49 +03:00