We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Config
Clone
1 parent 470ac25 commit f18b7f2Copy full SHA for f18b7f2
russh-config/src/lib.rs
@@ -25,7 +25,7 @@ pub enum Error {
25
mod proxy;
26
pub use proxy::*;
27
28
-#[derive(Debug)]
+#[derive(Clone, Debug)]
29
pub struct Config {
30
pub user: String,
31
pub host_name: String,
@@ -297,4 +297,10 @@ Host test_host
297
);
298
assert!(!config.strict_host_key_checking);
299
}
300
+
301
+ #[test]
302
+ fn is_clone() {
303
+ let config: Config = Config::default("some_host");
304
+ let _ = config.clone();
305
+ }
306
0 commit comments