From 88e372766e7f34d24ac1d39418ebc4fdf41cee66 Mon Sep 17 00:00:00 2001 From: veeso Date: Sat, 26 Oct 2024 11:18:12 +0200 Subject: [PATCH] fix: test is sync and send --- src/client.rs | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/src/client.rs b/src/client.rs index 75e3359..b990ad7 100644 --- a/src/client.rs +++ b/src/client.rs @@ -1153,6 +1153,28 @@ mod test { .is_err()); } + fn is_send(_send: T) {} + + fn is_sync(_sync: T) {} + + #[test] + fn test_should_be_sync() { + let client = FtpFs::new("127.0.0.1", 10021) + .username("test") + .password("test"); + + is_sync(client); + } + + #[test] + fn test_should_be_send() { + let client = FtpFs::new("127.0.0.1", 10021) + .username("test") + .password("test"); + + is_send(client); + } + // -- test utils #[cfg(feature = "with-containers")]