Skip to content

varlink genarated rust code doesn't build with rust editon 2024 #121

@cryptomilk

Description

@cryptomilk

Hi,

I'm new to rust and started my first project. As I have rust 1.85, cargo new created a Cargo.toml and set edition = 2024. However with this edition, the generated rust code from a varlink interface doesn't build.

error: binding modifiers may only be written when the default binding mode is `move`
   --> src/io_systemd_UserDatabase.rs:128:29
    |                                         
128 |                 error: Some(ref t), ..                                                 
    |                             ^^^ binding modifier not allowed under `ref` default binding mode
    |                                                                                                                                                                                     
    = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2024/match-ergonomics.html>

The varlink interface is defined here: https://systemd.io/USER_GROUP_API/

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions