aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/shirabe-semver/src/constraint
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2026-05-17 15:08:03 +0900
committernsfisis <nsfisis@gmail.com>2026-05-17 15:08:03 +0900
commit748e741f740ac46ec40e42679aba3b07927709c0 (patch)
tree31f01831b11613631ba68da047abf1a9aa43f1b0 /crates/shirabe-semver/src/constraint
parent79bcd3a9ce71954ce7b257e5f3ca1c147c0d974a (diff)
downloadphp-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')
-rw-r--r--crates/shirabe-semver/src/constraint/constraint.rs8
-rw-r--r--crates/shirabe-semver/src/constraint/match_all_constraint.rs8
-rw-r--r--crates/shirabe-semver/src/constraint/match_none_constraint.rs8
-rw-r--r--crates/shirabe-semver/src/constraint/multi_constraint.rs8
4 files changed, 16 insertions, 16 deletions
diff --git a/crates/shirabe-semver/src/constraint/constraint.rs b/crates/shirabe-semver/src/constraint/constraint.rs
index 8db322d..f8ff04e 100644
--- a/crates/shirabe-semver/src/constraint/constraint.rs
+++ b/crates/shirabe-semver/src/constraint/constraint.rs
@@ -347,10 +347,10 @@ impl ConstraintInterface for Constraint {
}
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()
}
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()
}
diff --git a/crates/shirabe-semver/src/constraint/match_none_constraint.rs b/crates/shirabe-semver/src/constraint/match_none_constraint.rs
index 17a45bb..51e13fd 100644
--- a/crates/shirabe-semver/src/constraint/match_none_constraint.rs
+++ b/crates/shirabe-semver/src/constraint/match_none_constraint.rs
@@ -22,10 +22,10 @@ impl ConstraintInterface for MatchNoneConstraint {
}
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()
}
diff --git a/crates/shirabe-semver/src/constraint/multi_constraint.rs b/crates/shirabe-semver/src/constraint/multi_constraint.rs
index 29d6f5e..04e262b 100644
--- a/crates/shirabe-semver/src/constraint/multi_constraint.rs
+++ b/crates/shirabe-semver/src/constraint/multi_constraint.rs
@@ -270,10 +270,10 @@ impl ConstraintInterface for MultiConstraint {
}
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()
}