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

led: extras: fix cargo clippy complaining about String construction #49

Merged
merged 1 commit into from
Oct 6, 2023

Commits on Oct 6, 2023

  1. led: extras: do not use Iterator::map(|_| format!()).collect() to bui…

    …ld String
    
    Use Iterator::fold() and write! instead.
    
    Does this make a difference in this case performance wise? No
    Does this make cargo clippy happy? Yes
    
    Signed-off-by: Leonard Göhrs <l.goehrs@pengutronix.de>
    hnez committed Oct 6, 2023
    Configuration menu
    Copy the full SHA
    654f62e View commit details
    Browse the repository at this point in the history