Fix code quality: trailing whitespace, unused imports, clippy warnings
- Fix trailing whitespace in kex.rs and s3.rs - Add missing KexProposal import in kex_complete.rs - Auto-fix clippy warnings across all crates - All 153 tests pass
This commit is contained in:
@@ -77,7 +77,7 @@ impl IscsiConnection {
|
||||
}
|
||||
|
||||
// Parse login parameters
|
||||
if response.data.len() > 0 {
|
||||
if !response.data.is_empty() {
|
||||
let params = String::from_utf8_lossy(&response.data);
|
||||
log::info!("Login response: {}", params);
|
||||
}
|
||||
|
||||
@@ -33,7 +33,7 @@ impl Discovery {
|
||||
let response = conn.recv_pdu().await?;
|
||||
|
||||
// Parse SendTargets response
|
||||
if response.data.len() > 0 {
|
||||
if !response.data.is_empty() {
|
||||
let targets_str = String::from_utf8_lossy(&response.data);
|
||||
let targets = targets_str
|
||||
.lines()
|
||||
|
||||
@@ -35,6 +35,12 @@ pub struct Initiator {
|
||||
connections: Vec<connection::IscsiConnection>,
|
||||
}
|
||||
|
||||
impl Default for Initiator {
|
||||
fn default() -> Self {
|
||||
Self::new()
|
||||
}
|
||||
}
|
||||
|
||||
impl Initiator {
|
||||
pub fn new() -> Self {
|
||||
Self {
|
||||
|
||||
Reference in New Issue
Block a user