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

Bugfix/refactor #34

Merged
merged 2 commits into from
May 21, 2017
Merged

Conversation

opilar
Copy link
Contributor

@opilar opilar commented May 12, 2017

  • replace try macro with ?
  • clean compiler warning

```
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
Copy link
Contributor Author

opilar commented May 20, 2017

@brson can somebody review that?

@alexcrichton
Copy link
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