Skip to content

Commit 003e6bd

Browse files
committedSep 8, 2023
Onliner clone and default derives
1 parent 4795690 commit 003e6bd

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed
 

‎src/config/auth.rs

+1-4
Original file line numberDiff line numberDiff line change
@@ -154,17 +154,14 @@ impl KeyPair {
154154
}
155155
}
156156

157-
#[derive(Clone)]
158-
#[derive(Default)]
157+
#[derive(Clone, Default)]
159158
pub(super) enum KeyType {
160159
#[default]
161160
PemRsa,
162161
SshRsa,
163162
SshEd25519,
164163
}
165164

166-
167-
168165
#[derive(Clone, Default)]
169166
pub(crate) struct AuthInfo {
170167
pub username: String,

‎src/config/version.rs

+1-4
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,14 @@ use crate::{
1010
type OurVer = String;
1111
type ServerVer = String;
1212

13-
#[derive(Debug, Clone)]
14-
#[derive(Default)]
13+
#[derive(Debug, Clone, Default)]
1514
pub(crate) enum SshVersion {
1615
V1,
1716
V2(OurVer, ServerVer),
1817
#[default]
1918
Unknown,
2019
}
2120

22-
23-
2421
fn read_version<S>(stream: &mut S, tm: Option<Duration>) -> SshResult<Vec<u8>>
2522
where
2623
S: Read,

0 commit comments

Comments
 (0)