Skip to content
This repository was archived by the owner on Aug 20, 2021. It is now read-only.

Bugfix/refactor#34

Merged
alexcrichton merged 2 commits into
rust-lang-deprecated:masterfrom
opilar:bugfix/refactor
May 21, 2017
Merged

Bugfix/refactor#34
alexcrichton merged 2 commits into
rust-lang-deprecated:masterfrom
opilar:bugfix/refactor

Conversation

@opilar

@opilar opilar commented May 12, 2017

Copy link
Copy Markdown
Contributor
  • replace try macro with ?
  • clean compiler warning

opilar added 2 commits May 12, 2017 21:32
```
warning: length comparison to zero
   --> src/lib.rs:203:27
    |
203 |             let leaf = if prefix.len() > 0 {
    |                           ^^^^^^^^^^^^^^^^ help: using `is_empty` is more concise: `!prefix.is_empty()`
    |
    = note: #[warn(len_zero)] on by default
    = help: for further information visit https://github.com/Manishearth/rust-clippy/wiki#len_zero
```
@opilar

opilar commented May 20, 2017

Copy link
Copy Markdown
Contributor Author

@brson can somebody review that?

@alexcrichton

Copy link
Copy Markdown
Contributor

Oop sorry for the delay, thanks for the PR!

@alexcrichton alexcrichton merged commit 05c275b into rust-lang-deprecated:master May 21, 2017
opilar pushed a commit to opilar/tempdir that referenced this pull request Sep 22, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants