What changed, and why it matters
This commit only reformats existing source code. It changes line breaks and indentation in a single Rust file so that a long expression and an if-statement are split across multiple lines. No logic, behavior, or security checks were changed.
No security action needed. This is a cosmetic code-style change.
Security signals we found
No strong security signals were identified.
Evidence from the diff
The diff in rust/rust_c/src/common/ur_ext.rs is a pure formatting change. The same conditional expression if let Some(protoc::sign_transaction::Transaction::TronTx(tx)) = sign_tx_content.transaction and the same if tx.memo.starts_with("=:") guard remain functionally identical; only whitespace and line wrapping were adjusted. There are no semantic modifications.
Changed components
rust/rust_c/src/common/ur_ext.rsInspect captured patch +4 / −3
diff --git a/rust/rust_c/src/common/ur_ext.rs b/rust/rust_c/src/common/ur_ext.rs
index 2be63e6..c3a7a26 100644
--- a/rust/rust_c/src/common/ur_ext.rs
+++ b/rust/rust_c/src/common/ur_ext.rs
@@ -269,9 +269,10 @@ fn get_view_type_from_keystone(bytes: Vec<u8>) -> Result<ViewType, URError> {
"ETH" => ViewType::EthTx,
#[cfg(feature = "tron")]
"TRON" => {
- if let Some(protoc::sign_transaction::Transaction::TronTx(tx)) = sign_tx_content.transaction {
- if tx.memo.starts_with("=:")
- {
+ if let Some(protoc::sign_transaction::Transaction::TronTx(tx)) =
+ sign_tx_content.transaction
+ {
+ if tx.memo.starts_with("=:") {
ViewType::TronSwapTx
} else {
ViewType::TronTx
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.