From: Jeff Lucovsky Date: Thu, 24 Apr 2025 12:47:32 +0000 (-0400) Subject: ftp: Apply rustfmt changes X-Git-Tag: suricata-8.0.0-rc1~418 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=87b7a0cef62c038b445c1d1edba779b26885f17e;p=thirdparty%2Fsuricata.git ftp: Apply rustfmt changes --- diff --git a/rust/src/ftp/ftp.rs b/rust/src/ftp/ftp.rs index 24750e8e58..5b2cbb4e11 100644 --- a/rust/src/ftp/ftp.rs +++ b/rust/src/ftp/ftp.rs @@ -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; diff --git a/rust/src/ftp/response.rs b/rust/src/ftp/response.rs index 1dc2e02e1b..03729ec1fd 100644 --- a/rust/src/ftp/response.rs +++ b/rust/src/ftp/response.rs @@ -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.