diff --git a/apps/desktop/desktop_native/ssh_agent/src/protocol/types.rs b/apps/desktop/desktop_native/ssh_agent/src/protocol/types.rs index bc89615a992..397e1c7ca69 100644 --- a/apps/desktop/desktop_native/ssh_agent/src/protocol/types.rs +++ b/apps/desktop/desktop_native/ssh_agent/src/protocol/types.rs @@ -363,8 +363,12 @@ impl PublicKey { pub fn try_from_blob(blob: Vec) -> Result { // Parse the blob to extract the algorithm let mut bytes = &blob[..]; - let alg = String::from_utf8_lossy(read_bytes(&mut bytes) - .map_err(|e| anyhow::anyhow!("Failed to read algorithm from blob: {e}"))?.as_slice()).to_string(); + let alg = String::from_utf8_lossy( + read_bytes(&mut bytes) + .map_err(|e| anyhow::anyhow!("Failed to read algorithm from blob: {e}"))? + .as_slice(), + ) + .to_string(); Ok(PublicKey { alg, blob }) } }