diff options
| author | nsfisis <nsfisis@gmail.com> | 2026-05-17 15:08:03 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2026-05-17 15:08:03 +0900 |
| commit | 748e741f740ac46ec40e42679aba3b07927709c0 (patch) | |
| tree | 31f01831b11613631ba68da047abf1a9aa43f1b0 /crates/shirabe-semver/src/constraint/match_all_constraint.rs | |
| parent | 79bcd3a9ce71954ce7b257e5f3ca1c147c0d974a (diff) | |
| download | php-shirabe-748e741f740ac46ec40e42679aba3b07927709c0.tar.gz php-shirabe-748e741f740ac46ec40e42679aba3b07927709c0.tar.zst php-shirabe-748e741f740ac46ec40e42679aba3b07927709c0.zip | |
chore: cargo clippy --fix
Diffstat (limited to 'crates/shirabe-semver/src/constraint/match_all_constraint.rs')
| -rw-r--r-- | crates/shirabe-semver/src/constraint/match_all_constraint.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/crates/shirabe-semver/src/constraint/match_all_constraint.rs b/crates/shirabe-semver/src/constraint/match_all_constraint.rs index b6b2445..97ce98c 100644 --- a/crates/shirabe-semver/src/constraint/match_all_constraint.rs +++ b/crates/shirabe-semver/src/constraint/match_all_constraint.rs @@ -22,10 +22,10 @@ impl ConstraintInterface for MatchAllConstraint { } fn get_pretty_string(&self) -> String { - if let Some(ref s) = self.pretty_string { - if !s.is_empty() { - return s.clone(); - } + if let Some(ref s) = self.pretty_string + && !s.is_empty() + { + return s.clone(); } self.__to_string() } |
