-
-
Notifications
You must be signed in to change notification settings - Fork 41
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
Housekeeping - nothing to see here, move along #90
Conversation
New regex enables SIMD on supported plaftorms.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for doing this (and taking the time to gnome this repo when I don't've the strength to, I genuinely appreciate it a tremendous lot ❤️).
Re: squashing: unnecessary, this is really well split into self-contained chunks 👍
I'd some, mainly stylistic, nitpicks, (would feel silly to immediately revert an entire commit at merge, when I put my dumb pedantry in :Р).
@@ -59,7 +59,7 @@ fn actual_main() -> Result<(), i32> { | |||
if !search_res.success() { | |||
return Err(search_res.code().unwrap_or(-1)); | |||
} | |||
println!(""); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm pretty sure this code pre-dates zero-arg writeln!()
s :Р
Good catch 👍
src/ops/mod.rs
Outdated
@@ -340,7 +340,7 @@ impl GitRepoPackage { | |||
GitRepoPackage { | |||
name: c.get(1).unwrap().as_str().to_string(), | |||
url: url.into_string(), | |||
branch: branch, | |||
branch, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd actually rather this stay explicit, as it's more aesthetically pleasing, if you please.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll revert this change and disable the lint.
src/options.rs
Outdated
@@ -225,7 +225,7 @@ fn cargo_dir() -> (String, PathBuf) { | |||
} | |||
} | |||
|
|||
fn existing_dir_validator(label: &str, s: String) -> Result<(), String> { | |||
fn existing_dir_validator(label: &str, s: &str) -> Result<(), String> { | |||
fs::canonicalize(&s).map(|_| ()).map_err(|_| format!("{} directory \"{}\" not found", label, s)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There's little difference here though, innit, seeing as the string will've gotten drop()
ped by the end of the caller's line anyway, but good idiomaticity catch 👍
(Although, does it work with fs::canonicalise(s)
here? Seems superiour, innit?)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't remember if I tried fs::canonicalise(s)
but yeah looks like it should work.
src/main-config.rs
Outdated
@@ -1,10 +1,9 @@ | |||
extern crate cargo_update; | |||
extern crate tabwriter; | |||
|
|||
use std::io::{Write, stdout}; | |||
use tabwriter::TabWriter; | |||
use std::io::{stdout, Write}; | |||
use std::process::exit; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd actually rather this commit dropped, consider the width-priority ordering superiour.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fine, I'll disable use
sorting in rustfmt
config.
That's the point of the reviews 😉 Maybe instead of blindly bumping minimal versions it'd better to add CI checking whether the crates in said versions are buildable rust-lang/cargo#5657? |
I'm not sure if I'm extremely dumb (yes), extremely tired (hardly), or if the way the feature's explained just doesn't click for me (probably) but I somehow don't get what it does? |
Versions declared in [dependencies]
foo = "1.0" You are declaring this crate will work with versions: 1.0 >=
Then you start using
There is ongoing effort to mitigate it by adding CI job with |
Updated |
Released in v1.6.2. |
std::env::home_dir()
was lying about it's functionality: Deprecatestd::env::home_dir
and fix incorrect documentation rust-lang/rust#51656regex
gained ability to detect and use SIMD on supported machines: rust-lang/regex@e455d53Before:
After:
use
keyword, there is option (disabled by default) to do the same forextern crate
I can squash commits if you want.