Skip to content

rust-rustfmt-switches from .dir-local.el #574

@andrewzhurov

Description

@andrewzhurov

In rust-mode 1.0.6 setting rust-rustfmt-switches in .dir-locals.el has no effect.
E.g., ("--edition" "2024) gets disregarded. (value that's been set globally gets read on save, in my case it was ("--edition" "2018").

It seems possible to configure rust-fmt per-project by setting nil, in which case it reads config from rustfmt.toml, and that's the default now.
Still, may be nice to allow per-project configuration via .dir-locals.el?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions