mirror of
https://github.com/nushell/nushell
synced 2025-01-20 00:55:54 +00:00
c98960d053
# 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. |
||
---|---|---|
.. | ||
cd.rs | ||
du.rs | ||
glob.rs | ||
ls.rs | ||
mktemp.rs | ||
mod.rs | ||
open.rs | ||
rm.rs | ||
save.rs | ||
start.rs | ||
touch.rs | ||
ucp.rs | ||
umkdir.rs | ||
umv.rs | ||
util.rs | ||
watch.rs |