mirror of
https://github.com/facebook/sapling.git
synced 2024-10-10 16:57:49 +03:00
Convert scm/mononoke/sshrelay to Rust 2018
Summary: Rust 2018 updates to: //scm/mononoke/sshrelay:sshrelay //scm/mononoke/sshrelay:sshrelay-unittest Reviewed By: kulshrax Differential Revision: D15466983 fbshipit-source-id: 065184fda82ecd338f0e9c7eddd49f528124cbfe
This commit is contained in:
parent
04b62534a7
commit
3c5287e16d
@ -10,7 +10,7 @@ extern crate futures_ext;
|
||||
#[macro_use]
|
||||
extern crate maplit;
|
||||
extern crate netstring;
|
||||
extern crate serde;
|
||||
|
||||
#[macro_use]
|
||||
extern crate serde_derive;
|
||||
extern crate serde_json;
|
||||
@ -274,8 +274,8 @@ mod test {
|
||||
use bytes::{BufMut, BytesMut};
|
||||
use tokio_io::codec::{Decoder, Encoder};
|
||||
|
||||
use super::*;
|
||||
use super::SshStream::*;
|
||||
use super::*;
|
||||
|
||||
trait ToBytes: AsRef<[u8]> {
|
||||
fn bytes(&self) -> Bytes {
|
||||
@ -283,11 +283,7 @@ mod test {
|
||||
}
|
||||
}
|
||||
|
||||
impl<T> ToBytes for T
|
||||
where
|
||||
T: AsRef<[u8]>,
|
||||
{
|
||||
}
|
||||
impl<T> ToBytes for T where T: AsRef<[u8]> {}
|
||||
|
||||
#[test]
|
||||
fn encode_simple() {
|
||||
|
Loading…
Reference in New Issue
Block a user