ExtraCheckArg::is_non_auto_or_matches with ExtraCheckLang::Js should return true if the filepath ends in .js or .ts.
this should be fairly easy to do by just making the match statement yield a slice of strings instead of a single string, and then using Iterator::any.
|
let ext = match self.lang { |
ExtraCheckArg::is_non_auto_or_matcheswithExtraCheckLang::Jsshould return true if the filepath ends in.jsor.ts.this should be fairly easy to do by just making the match statement yield a slice of strings instead of a single string, and then using
Iterator::any.rust/src/tools/tidy/src/extra_checks/mod.rs
Line 723 in 523d399