]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
ftp: Apply rustfmt changes
authorJeff Lucovsky <jlucovsky@oisf.net>
Thu, 24 Apr 2025 12:47:32 +0000 (08:47 -0400)
committerVictor Julien <victor@inliniac.net>
Fri, 25 Apr 2025 07:51:46 +0000 (09:51 +0200)
rust/src/ftp/ftp.rs
rust/src/ftp/response.rs

index 24750e8e58203e2cbce9b90bba19436e8dd9b5bd..5b2cbb4e11ce021b425b1f54551cb0f549b78482 100644 (file)
@@ -19,8 +19,8 @@ use std;
 use std::ffi::CString;
 use std::os::raw::{c_char, c_int, c_void};
 
-use crate::core::*;
 use crate::conf::{conf_get, get_memval};
+use crate::core::*;
 use crate::ftp::constant::*;
 use lazy_static::lazy_static;
 
index 1dc2e02e1bae495d90a5aa1dad4ad76789f57ead..03729ec1fd75cd39653c15d19b8beef8e7aa0c09 100644 (file)
@@ -24,9 +24,9 @@ use std::slice;
 pub struct FTPResponseLine {
     code: *mut u8,     // Response code as a string (may be null)
     response: *mut u8, // Response string
-    length: usize,         // Length of the response string
-    truncated: bool,       // Uses TX/state value.
-    total_size: usize,     // Total allocated size in bytes
+    length: usize,     // Length of the response string
+    truncated: bool,   // Uses TX/state value.
+    total_size: usize, // Total allocated size in bytes
 }
 
 /// Parses a single FTP response line and returns an FTPResponseLine struct.