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

Feature Request: Rust Support #3

Open
ShiChenCong opened this issue Aug 10, 2023 · 1 comment
Open

Feature Request: Rust Support #3

ShiChenCong opened this issue Aug 10, 2023 · 1 comment

Comments

@ShiChenCong
Copy link

No description provided.

@laureanray
Copy link
Contributor

Rust is already supported with semicolons https://github.com/filNaj/tree-setter/blob/2cb29fa95d91e8c6c8615587fe4102e518e6b6c0/queries/rust/tsetter.scm#L7C1-L10C2

For equals I think similar to #2 it would be tricky to implement for cases you would want to explicitly define a type for a variable

Example:

fn main() {
    let config_max: Option<u8> = None;
    let foo = 100;
    let mut bar = 101;
    const THREE_HOURS_IN_SECONDS: u32 = 60 * 60 * 3;
}

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

No branches or pull requests

2 participants