mirror of
https://github.com/astral-sh/ruff.git
synced 2025-10-07 09:00:31 +00:00
bump MSRV to 1.83 (#16294)
According to our new MSRV policy (see https://github.com/astral-sh/ruff/issues/16370 ), bump our MSRV to 1.83 (N - 2), and autofix some new clippy lints.
This commit is contained in:
parent
bf2c9a41cd
commit
dd6f6233bd
47 changed files with 85 additions and 93 deletions
|
@ -2800,7 +2800,7 @@ impl Pattern {
|
|||
pub fn is_wildcard(&self) -> bool {
|
||||
match self {
|
||||
Pattern::MatchAs(PatternMatchAs { pattern, .. }) => {
|
||||
pattern.as_deref().map_or(true, Pattern::is_wildcard)
|
||||
pattern.as_deref().is_none_or(Pattern::is_wildcard)
|
||||
}
|
||||
Pattern::MatchOr(PatternMatchOr { patterns, .. }) => {
|
||||
patterns.iter().all(Pattern::is_wildcard)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue