nushell/crates/nu-command/src/filesystem
Stefan Holderbach 6a7a60429f
Remove unnecessary #[allow(...)] annotations (#6870)
* Remove unnecessary `#[allow]` annots

Reduce the number of lint exceptions that are not necessary with the
current state of the code (or more recent toolchain)

* Remove dead code from `FileStructure` in nu-command

* Replace `allow(unused)` with relevant feature switch

* Deal with `needless_collect` with annotations

* Change hack for needless_collect in `from json`

This change obviates the need for `allow(needless_collect)`
Removes a pessimistic allocation for empty strings, but increases
allocation size to `Value`

Probably not really worth it.

* Revert "Deal with `needless_collect` with annotations"

This reverts commit 05aca98445.

The previous state seems to better from a performance perspective as a
`Vec<String>` is lighter weight than `Vec<Value>`
2022-10-24 20:12:16 +02:00
..
cd.rs Test command names and search terms for redundancy (#6380) 2022-08-24 11:16:47 +02:00
cd_query.rs Add hooks to cli/repl (#5479) 2022-05-09 07:28:39 +12:00
cp.rs Remove unnecessary #[allow(...)] annotations (#6870) 2022-10-24 20:12:16 +02:00
glob.rs Filter out empty glob patterns to "glob" command (#6707) 2022-10-15 18:00:38 +02:00
ls.rs Mildly edited a small handful of help messages (#6868) 2022-10-23 02:02:52 -04:00
mkdir.rs Test command names and search terms for redundancy (#6380) 2022-08-24 11:16:47 +02:00
mod.rs enable cd to work with directory abbreviations (#5452) 2022-05-06 07:58:32 -05:00
mv.rs Remove unnecessary #[allow(...)] annotations (#6870) 2022-10-24 20:12:16 +02:00
open.rs Wrap open parse errors from from commands (#6877) 2022-10-24 20:09:19 +02:00
rm.rs rm: don't update target_exists every time in the loop (#6837) 2022-10-21 07:42:29 -07:00
save.rs Allow captured stderr saving to file (#6793) 2022-10-20 07:56:44 -05:00
touch.rs remove -d and -t from touch (#6629) 2022-09-28 13:48:34 +13:00
util.rs Remove unnecessary #[allow(...)] annotations (#6870) 2022-10-24 20:12:16 +02:00
watch.rs add -e flag to print, to print the value to stderr (#5935) 2022-07-02 09:54:49 -05:00