• @nous
    link
    English
    5
    edit-2
    11 months ago

    Looks to be failing a cargo fmt check: https://woodpecker.join-lemmy.org/repos/129/pipeline/1821/8

    + cargo +nightly-2023-07-10 fmt -- --check
    Diff in /woodpecker/src/github.com/LemmyNet/lemmy/crates/utils/src/rate_limit/mod.rs at line 224:
     use std::sync::atomic::{AtomicUsize, Ordering};
     static CONCURRENT_API_USE: AtomicUsize = AtomicUsize::new(0);
     
    -
     impl<s> Service for RateLimitedMiddleware<s>
     where
       S: Service + 'static,
    

    If I read that right you have one extra blank new line that the nightly rust fmt is not happy about.

    You should just need to run cargo fmt on the code, might need the same nightly version as above though.</s></s>