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 missing borrow in pathext comparison #49

Closed
wants to merge 1 commit into from

Conversation

MarijnS95
Copy link
Contributor

@MarijnS95 MarijnS95 commented Jan 24, 2022

Fixes #48

Our Windows CI broke just after 4.2.3 released, due to 6765276:

error[E0308]: mismatched types
   --> C:\Users\runneradmin\.cargo\registry\src\github.com-1ecc6299db9ec823\which-4.2.3\src\finder.rs:161:65
    |
161 | ...                   if s.as_bytes().first() == Some(b'.') {
    |                                                       ^^^^
    |                                                       |
    |                                                       expected `&u8`, found `u8`
    |                                                       help: consider borrowing here: `&b'.'`

Our Windows CI broke just after 4.2.3 released, due to 6765276:

    error[E0308]: mismatched types
       --> C:\Users\runneradmin\.cargo\registry\src\github.com-1ecc6299db9ec823\which-4.2.3\src\finder.rs:161:65
        |
    161 | ...                   if s.as_bytes().first() == Some(b'.') {
        |                                                       ^^^^
        |                                                       |
        |                                                       expected `&u8`, found `u8`
        |                                                       help: consider borrowing here: `&b'.'`
@MarijnS95
Copy link
Contributor Author

@harryfei Should the CI be extended to also build-test Windows?

@da-niao-dan
Copy link

+1

@harryfei
Copy link
Owner

Oh, sorry for that.

@harryfei
Copy link
Owner

#50 fixed this.

@harryfei harryfei closed this Jan 24, 2022
@MarijnS95 MarijnS95 deleted the borrow-pathext-byte branch January 24, 2022 09:36
@harryfei
Copy link
Owner

4.2.4 published.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Compile error in crate 4.2.3 published 1 hour a ago.
3 participants