Skip to content

Commit f18b7f2

Browse files
authored
feat: make Config Clone (Eugeny#544)
1 parent 470ac25 commit f18b7f2

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

russh-config/src/lib.rs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ pub enum Error {
2525
mod proxy;
2626
pub use proxy::*;
2727

28-
#[derive(Debug)]
28+
#[derive(Clone, Debug)]
2929
pub struct Config {
3030
pub user: String,
3131
pub host_name: String,
@@ -297,4 +297,10 @@ Host test_host
297297
);
298298
assert!(!config.strict_host_key_checking);
299299
}
300+
301+
#[test]
302+
fn is_clone() {
303+
let config: Config = Config::default("some_host");
304+
let _ = config.clone();
305+
}
300306
}

0 commit comments

Comments
 (0)