Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Clippy warnings #466

Merged
merged 1 commit into from
May 6, 2019
Merged

Commits on May 6, 2019

  1. Fix Clippy warnings

    New Clippy does not like when you write "|s| s.to_owned()" because
    making a new closure here is reduntant (you can pass the function
    std::borrow::ToOwned::to_owned there directly). This causes a warning
    and we treat warnings as errors.
    
    Anyway, it's not like we need to avoid this computation here with
    a closure so rewrite the code to compute the default path in a more
    straightforward way and thus avoid the wrath of our resident god of
    static analysis.
    ilammy committed May 6, 2019
    Configuration menu
    Copy the full SHA
    84420b8 View commit details
    Browse the repository at this point in the history