Refused to compile so I fixed refutable pattern matches in path conversion. #234
Refused to compile so I fixed refutable pattern matches in path conversion. #234MustafaAamir wants to merge 0 commit intobergercookie:masterfrom
Conversation
|
This change was made intentionally in #162, as the original code was unnecessary verbose. I don't want to pull these changes into the project, but I really appreciate your desire to help out! If you'd like to add a MSRV in the README instead to help prevent issues like this in the future, I'd be happy to accept that. |
|
No worries! I'm curious though, why doesn't it compile with the |
|
I'm not 100% sure, but it looks like this was stabilized in 1.82. Before that, it looks like the feature was gated behind the |
|
Gentle ping @MustafaAamir. Would love a MSRV entry added to the README if you get the chance. :) |
|
Of course! I'm not familiar with msrv conventions for rust, but I ran |
No worries! The MSRV is 1.81.0 on this branch, but it's 1.82.0 on the current master: I would add something like the following just below the install instructions in the README: |
Error as a result of running
cargo run:Cargo version:
cargo 1.81.0-nightly (154fdac39 2024-07-07)Solution:
Explicitly handle the Err(_) case when parsing path.