What changed, and why it matters
This commit is a purely cosmetic code-formatting change. It removes an extra space in an 'if' statement in the Sui blockchain app so that the code follows Rust style rules. There is no functional change and no security impact.
No action needed. This is a formatting-only commit with no security relevance.
Security signals we found
No strong security signals were identified.
Evidence from the diff
The diff shows a single whitespace-only change in rust/apps/sui/src/lib.rs: ‘if intent.is_empty()’ becomes ‘if intent.is_empty()’. This is the result of running ‘cargo fmt’, Rust’s official formatter. The logic, control flow, and behavior are identical before and after the change.
Changed components
rust/apps/sui/src/lib.rsInspect captured patch +1 / −1
diff --git a/rust/apps/sui/src/lib.rs b/rust/apps/sui/src/lib.rs
index c373f21..eaf137e 100644
--- a/rust/apps/sui/src/lib.rs
+++ b/rust/apps/sui/src/lib.rs
@@ -55,7 +55,7 @@ pub fn generate_address(pub_key: &str) -> Result<String> {
}
pub fn parse_intent(intent: &[u8]) -> Result<Intent> {
- if intent.is_empty() {
+ if intent.is_empty() {
return Err(SuiError::InvalidData("intent is empty".to_string()));
}
match IntentScope::try_from(intent[0])? {
Why this scored 15/100
Community notes
Notes can correct, qualify, or add evidence to the AI analysis. Every note shown here has been validated by a human moderator.
The AI analysis stands alone for now. Submit a note if you can add evidence or important context.