Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
Eugeny committed Dec 28, 2024
1 parent 7833d4f commit 21ac760
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
3 changes: 1 addition & 2 deletions russh-keys/src/agent/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -341,8 +341,7 @@ impl<S: AsyncRead + AsyncWrite + Send + Unpin + 'static, A: Agent + Send + Sync
writebuf.push(msg::SIGN_RESPONSE);
let data = Bytes::decode(r)?;

sign_with_hash_alg(&PrivateKeyWithHashAlg::new(key, None)?, &data)?
.encode(writebuf)?;
sign_with_hash_alg(&PrivateKeyWithHashAlg::new(key, None)?, &data)?.encode(writebuf)?;

let len = writebuf.len();
BigEndian::write_u32(writebuf, (len - 4) as u32);
Expand Down
4 changes: 2 additions & 2 deletions russh-keys/src/helpers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ mod algorithm {
}
}

use crate::key::PrivateKeyWithHashAlg;

#[doc(hidden)]
pub use algorithm::AlgorithmExt;

use crate::key::PrivateKeyWithHashAlg;
4 changes: 2 additions & 2 deletions russh/src/client/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,8 @@ use crate::session::{
use crate::ssh_read::SshRead;
use crate::sshbuffer::{SSHBuffer, SshId};
use crate::{
auth, msg, negotiation, strict_kex_violation, ChannelId, ChannelOpenFailure,
CryptoVec, Disconnect, Limits, Sig,
auth, msg, negotiation, strict_kex_violation, ChannelId, ChannelOpenFailure, CryptoVec,
Disconnect, Limits, Sig,
};

mod encrypted;
Expand Down

0 comments on commit 21ac760

Please sign in to comment.