11#[ cfg( target_os = "linux" ) ]
22use keyring_cli:: clipboard:: linux:: LinuxClipboard ;
3+
4+ #[ cfg( target_os = "macos" ) ]
35use keyring_cli:: clipboard:: macos:: MacOSClipboard ;
4- use keyring_cli :: clipboard :: manager :: { ClipboardConfig , ClipboardManager } ;
6+
57#[ cfg( target_os = "windows" ) ]
68use keyring_cli:: clipboard:: windows:: WindowsClipboard ;
9+
10+ use keyring_cli:: clipboard:: manager:: { ClipboardConfig , ClipboardManager } ;
711use keyring_cli:: clipboard:: ClipboardService ;
812use std:: time:: Duration ;
913
14+ #[ cfg( target_os = "macos" ) ]
1015#[ test]
1116fn test_macos_clipboard ( ) {
1217 let mut clipboard = MacOSClipboard ;
@@ -49,9 +54,10 @@ fn test_linux_clipboard() {
4954 assert_eq ! ( clipboard. timeout( ) , Duration :: from_secs( 45 ) ) ;
5055}
5156
57+ #[ cfg( target_os = "macos" ) ]
5258#[ test]
5359fn test_clipboard_service ( ) {
54- let mut macos_clipboard = MacOSClipboard ;
60+ let macos_clipboard = MacOSClipboard ;
5561 let config = ClipboardConfig {
5662 timeout_seconds : 60 ,
5763 clear_after_copy : true ,
@@ -70,9 +76,10 @@ fn test_clipboard_service() {
7076 assert ! ( service. clear_clipboard( ) . is_ok( ) ) ;
7177}
7278
79+ #[ cfg( target_os = "macos" ) ]
7380#[ test]
7481fn test_content_length_limit ( ) {
75- let mut macos_clipboard = MacOSClipboard ;
82+ let macos_clipboard = MacOSClipboard ;
7683 let config = ClipboardConfig {
7784 timeout_seconds : 30 ,
7885 clear_after_copy : true ,
0 commit comments