Skip to content

Conversation

cryptomilk
Copy link
Contributor

@cryptomilk cryptomilk commented Mar 22, 2025

This generates code which also compiles with Rust 2024.

See https://doc.rust-lang.org/nightly/edition-guide/rust-2024/match-ergonomics.html

Fixes #121

@cryptomilk
Copy link
Contributor Author

Fixed.

@cryptomilk cryptomilk force-pushed the asn-generator branch 2 times, most recently from 09fb357 to 981686c Compare March 24, 2025 18:19
@cryptomilk
Copy link
Contributor Author

Ah, there is a second one. Fixed.

@coveralls
Copy link

coveralls commented Mar 24, 2025

Pull Request Test Coverage Report for Build 14084890847

Details

  • 9 of 9 (100.0%) changed or added relevant lines in 2 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage decreased (-0.1%) to 57.016%

Totals Coverage Status
Change from base Build 12515908213: -0.1%
Covered Lines: 2771
Relevant Lines: 4860

💛 - Coveralls

@cryptomilk
Copy link
Contributor Author

The linting reports are unrelated to this PR.

@zeenix
Copy link
Collaborator

zeenix commented Mar 26, 2025

The linting reports are unrelated to this PR.

Yeah but CI needs to pass to merge. Could you please also fix the lints as well (in a separate commit (not PR) please)? Otherwise, I'll do it at some point and then rebase/merge this.

@cryptomilk
Copy link
Contributor Author

Ok, I will look into it.

@cryptomilk
Copy link
Contributor Author

Done.

@zeenix zeenix enabled auto-merge March 26, 2025 13:40
    --> varlink/src/lib.rs:1056:53
     |
1056 |   ...                   .map_err(map_context!())
     |  _______________________________________________^
1057 | | ...                   .map_err(Error::from)?,
     | |___________________________________________^ help: consider removing
     |
     = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_conversion
     = note: `-D clippy::useless-conversion` implied by `-D warnings`
     = help: to override `-D warnings` add `#[allow(clippy::useless_conversion)]`
auto-merge was automatically disabled March 26, 2025 13:46

Head branch was pushed to by a user without write access

@cryptomilk
Copy link
Contributor Author

I didn't run cargo fmt ... did it now.

@zeenix zeenix enabled auto-merge March 26, 2025 14:32
@zeenix zeenix merged commit 30e0a81 into varlink:master Mar 26, 2025
14 checks passed
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.

varlink genarated rust code doesn't build with rust editon 2024
3 participants