We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 754c4cd commit bc96aa4Copy full SHA for bc96aa4
src/lib.rs
@@ -296,7 +296,7 @@ trait WriteExt: AsyncWriteExt + Unpin {
296
}
297
AddrKind::Domain(domain, port) => {
298
self.write_atyp(Atyp::Domain).await?;
299
- self.write_string(&domain, StringKind::Domain).await?;
+ self.write_string(domain, StringKind::Domain).await?;
300
self.write_u16(*port).await?;
301
302
@@ -328,7 +328,7 @@ trait WriteExt: AsyncWriteExt + Unpin {
328
329
async fn write_selection_msg(&mut self, methods: &[AuthMethod]) -> Result<()> {
330
self.write_version().await?;
331
- self.write_methods(&methods).await?;
+ self.write_methods(methods).await?;
332
self.flush().await?;
333
Ok(())
334
0 commit comments