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

Only attempt to rustfmt files checked into git #3327

Merged
merged 1 commit into from
Sep 19, 2024

Commits on Sep 18, 2024

  1. Only attempt to rustfmt files checked into git

    This avoids `rustfmt` failing on Rust files generated by dependent
    crates in `target`, eg
    
    ```
    + rustfmt --edition 2021 --check ./target/debug/build/thiserror-8230374e07b5c05a/out/probe.rs
    Diff in /home/matt/rust-lightning-3/target/debug/build/thiserror-8230374e07b5c05a/out/probe.rs at line 1:
    
    -    #![feature(provide_any)]
    +#![feature(provide_any)]
    
    -    use std::any::{Demand, Provider};
    +use std::any::{Demand, Provider};
    
    -    fn _f<'a, P: Provider>(p: &'a P, demand: &mut Demand<'a>) {
    -        p.provide(demand);
    -    }
    +fn _f<'a, P: Provider>(p: &'a P, demand: &mut Demand<'a>) {
    +	p.provide(demand);
    +}
    ```
    TheBlueMatt committed Sep 18, 2024
    Configuration menu
    Copy the full SHA
    930f5fb View commit details
    Browse the repository at this point in the history