summaryrefslogtreecommitdiffstats
path: root/alacritty/src/clipboard.rs
diff options
context:
space:
mode:
Diffstat (limited to 'alacritty/src/clipboard.rs')
-rw-r--r--alacritty/src/clipboard.rs6
1 files changed, 2 insertions, 4 deletions
diff --git a/alacritty/src/clipboard.rs b/alacritty/src/clipboard.rs
index b3818c75..bb90a13d 100644
--- a/alacritty/src/clipboard.rs
+++ b/alacritty/src/clipboard.rs
@@ -3,7 +3,6 @@ use raw_window_handle::RawDisplayHandle;
use alacritty_terminal::term::ClipboardType;
-#[cfg(any(test, not(any(feature = "x11", target_os = "macos", windows))))]
use copypasta::nop_clipboard::NopClipboardContext;
#[cfg(all(feature = "wayland", not(any(target_os = "macos", windows))))]
use copypasta::wayland_clipboard;
@@ -31,9 +30,8 @@ impl Clipboard {
}
}
- /// Used for tests and to handle missing clipboard provider when built without the `x11`
- /// feature.
- #[cfg(any(test, not(any(feature = "x11", target_os = "macos", windows))))]
+ /// Used for tests, to handle missing clipboard provider when built without the `x11`
+ /// feature, and as default clipboard value.
pub fn new_nop() -> Self {
Self { clipboard: Box::new(NopClipboardContext::new().unwrap()), selection: None }
}