-
-
Notifications
You must be signed in to change notification settings - Fork 166
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 lints and other minor improvements #688
Commits on Jul 24, 2024
-
fix incorrect test that fails to compare lists
A test tries to compare equality of `Vec`s, approximately `x.sort() == y.sort()`, but `sort()` uses in-place mutation, and returns `unit`, not the input `slice`, so the lists are never actually compared.
Configuration menu - View commit details
-
Copy full SHA for da632b4 - Browse repository at this point
Copy the full SHA da632b4View commit details
Commits on Jul 30, 2024
-
switch from
filter_map()
tomap_while()
It's possible for a call to `File::open()` to succeed even if reading from that `File` isn't actually possible due to the `File` being a directory. In such cases, `Lines` can return `Err` infinitely, causing `filter_map()` to diverge while searching for a nonexistant `Ok`. This is a semantic change. `filter_map()` can filter multiple errors before returning lines again, while `map_while()` will stop iterating entirely at the first `Err`. However, errors are unlikely at all since the `file` argument is currently always a preallocated temporary file for collecting `Command` output. This merely mitigates the worst case if `lines_from_file()` is ever used in a way where this error could occur.
Configuration menu - View commit details
-
Copy full SHA for 9925e49 - Browse repository at this point
Copy the full SHA 9925e49View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0ead872 - Browse repository at this point
Copy the full SHA 0ead872View commit details -
Configuration menu - View commit details
-
Copy full SHA for fa0bc6c - Browse repository at this point
Copy the full SHA fa0bc6cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 5c5ee75 - Browse repository at this point
Copy the full SHA 5c5ee75View commit details -
Configuration menu - View commit details
-
Copy full SHA for e58f010 - Browse repository at this point
Copy the full SHA e58f010View commit details -
simplify iteration on map keys
replace `Vec<String>` with `Vec<&str>` to reduce allocation
Configuration menu - View commit details
-
Copy full SHA for b5c5014 - Browse repository at this point
Copy the full SHA b5c5014View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7e09123 - Browse repository at this point
Copy the full SHA 7e09123View commit details -
Configuration menu - View commit details
-
Copy full SHA for fbd70e9 - Browse repository at this point
Copy the full SHA fbd70e9View commit details -
remove call to
into_iter()
on rangesall ranges are already iterators
Configuration menu - View commit details
-
Copy full SHA for 05eaeac - Browse repository at this point
Copy the full SHA 05eaeacView commit details -
Configuration menu - View commit details
-
Copy full SHA for 2b69046 - Browse repository at this point
Copy the full SHA 2b69046View commit details -
remove
write(true)
fromOpenOptions
builder`append(true)` implies `write(true)`
Configuration menu - View commit details
-
Copy full SHA for 5daa6b0 - Browse repository at this point
Copy the full SHA 5daa6b0View commit details -
Configuration menu - View commit details
-
Copy full SHA for 91d0c27 - Browse repository at this point
Copy the full SHA 91d0c27View commit details
Commits on Aug 5, 2024
-
replace mixed quotes using backtick and singlequote with just backticks
Why was this used in the first place? Does anyone depend on this particular format?
Configuration menu - View commit details
-
Copy full SHA for 996587f - Browse repository at this point
Copy the full SHA 996587fView commit details
Commits on Aug 6, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 6c22ee9 - Browse repository at this point
Copy the full SHA 6c22ee9View commit details -
Configuration menu - View commit details
-
Copy full SHA for b678b0d - Browse repository at this point
Copy the full SHA b678b0dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 34eb3ef - Browse repository at this point
Copy the full SHA 34eb3efView commit details -
replace
String::from_utf8()
withstd::str::from_utf8()
allocation should be avoided when possible since it's relatively slow
Configuration menu - View commit details
-
Copy full SHA for 7eab2ab - Browse repository at this point
Copy the full SHA 7eab2abView commit details -
Configuration menu - View commit details
-
Copy full SHA for 0cde2ec - Browse repository at this point
Copy the full SHA 0cde2ecView commit details