commits
Co-authored-by: Wes Gray <wes.gray@gmail.com>
Co-authored-by: Shahar "Dawn" Or <mightyiampresence@gmail.com>
Co-authored-by: Shahar "Dawn" Or <mightyiampresence@gmail.com>
Co-authored-by: Wes Gray <wes.gray@gmail.com>
Co-authored-by: Shahar "Dawn" Or <mightyiampresence@gmail.com>
it is unused complexity
Co-authored-by: Wes Gray <wes.gray@gmail.com>
Ref:
```
Checking statix v0.5.8 (/build/source/bin)
error: this `if` statement can be collapsed
--> bin/src/dirs.rs:50:17
|
50 | / if dir.is_dir() {
51 | | if let Match::None | Match::Whitelist(_) = self.ignore.matched(&dir, true) {
52 | | let mut found = false;
53 | | for entry in fs::read_dir(&dir).ok()? {
... |
70 | | }
| |_________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_if
= note: `-D clippy::collapsible-if` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::collapsible_if)]`
help: collapse nested if block
|
50 ~ if dir.is_dir()
51 ~ && let Match::None | Match::Whitelist(_) = self.ignore.matched(&dir, true) {
52 | let mut found = false;
...
68 | }
69 ~ }
|
error: could not compile `statix` (lib) due to 1 previous error
```
Ref:
```
Compiling vfs v0.0.0 (/build/source/vfs)
error: hiding a lifetime that's elided elsewhere is confusing
--> vfs/src/lib.rs:73:17
|
73 | pub fn iter(&self) -> impl Iterator<Item = VfsEntry> {
| ^^^^^ -------- the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
= note: `-D mismatched-lifetime-syntaxes` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(mismatched_lifetime_syntaxes)]`
help: use `'_` for type paths
|
73 | pub fn iter(&self) -> impl Iterator<Item = VfsEntry<'_>> {
| ++++
error: could not compile `vfs` (lib) due to 1 previous error
```
Co-authored-by: Shahar "Dawn" Or <mightyiampresence@gmail.com>
feat: bump rnix dependency to 0.11.0
Co-authored-by: aviac <aviac@mailbox.org>
Co-authored-by: Wes Gray <wes.gray@gmail.com>
Co-authored-by: x10an14 <x10an14@users.noreply.github.com>
Co-authored-by: x10an14 <x10an14@users.noreply.github.com>
Co-authored-by: x10an14 <x10an14@users.noreply.github.com>
Co-authored-by: Shahar "Dawn" Or <mightyiampresence@gmail.com>
Ref:
```
Checking statix v0.5.8 (/build/source/bin)
error: this `if` statement can be collapsed
--> bin/src/dirs.rs:50:17
|
50 | / if dir.is_dir() {
51 | | if let Match::None | Match::Whitelist(_) = self.ignore.matched(&dir, true) {
52 | | let mut found = false;
53 | | for entry in fs::read_dir(&dir).ok()? {
... |
70 | | }
| |_________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_if
= note: `-D clippy::collapsible-if` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::collapsible_if)]`
help: collapse nested if block
|
50 ~ if dir.is_dir()
51 ~ && let Match::None | Match::Whitelist(_) = self.ignore.matched(&dir, true) {
52 | let mut found = false;
...
68 | }
69 ~ }
|
error: could not compile `statix` (lib) due to 1 previous error
```
Ref:
```
Compiling vfs v0.0.0 (/build/source/vfs)
error: hiding a lifetime that's elided elsewhere is confusing
--> vfs/src/lib.rs:73:17
|
73 | pub fn iter(&self) -> impl Iterator<Item = VfsEntry> {
| ^^^^^ -------- the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
= note: `-D mismatched-lifetime-syntaxes` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(mismatched_lifetime_syntaxes)]`
help: use `'_` for type paths
|
73 | pub fn iter(&self) -> impl Iterator<Item = VfsEntry<'_>> {
| ++++
error: could not compile `vfs` (lib) due to 1 previous error
```