diff options
| author | 魏曹先生 <1992414357@qq.com> | 2025-10-27 17:20:31 +0800 |
|---|---|---|
| committer | 魏曹先生 <1992414357@qq.com> | 2025-10-27 17:20:31 +0800 |
| commit | 9766cdc3f0a741a7548c413297425efd298af8f2 (patch) | |
| tree | e7afddf178c23dfe292b6273d1a8261ac8a8d5dd | |
| parent | 45cee7d8def7738d3347b201d3c54c0055817a4c (diff) | |
"fix: Fix indentation issues
| -rw-r--r-- | crates/system_action/action_macros/src/lib.rs | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/crates/system_action/action_macros/src/lib.rs b/crates/system_action/action_macros/src/lib.rs index 7362cdf..f65d424 100644 --- a/crates/system_action/action_macros/src/lib.rs +++ b/crates/system_action/action_macros/src/lib.rs @@ -121,11 +121,12 @@ fn validate_function_signature(fn_sig: &syn::Signature) { if let syn::Type::Path(type_path) = return_type.as_ref() { if let Some(segment) = type_path.path.segments.last() - && segment.ident != "Result" { - panic!( - "Expected Action function to return Result<T, TcpTargetError>, but found different return type" - ); - } + && segment.ident != "Result" + { + panic!( + "Expected Action function to return Result<T, TcpTargetError>, but found different return type" + ); + } } else { panic!( "Expected Action function to return Result<T, TcpTargetError>, but found no return type" |
