Skip to content

Commit

Permalink
Resolve review feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
Hinton committed Aug 27, 2024
1 parent 1d69d4b commit 86d695b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ pub use platform::{ClearExtLinux, GetExtLinux, LinuxClipboardKind, SetExtLinux};
pub use platform::SetExtWindows;

#[cfg(target_os = "macos")]
pub use platform::SetExtOsx;
pub use platform::SetExtApple;

/// The OS independent struct for accessing the clipboard.
///
Expand Down
10 changes: 5 additions & 5 deletions src/platform/osx.rs
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@ fn add_clipboard_exclusions(clipboard: &mut Clipboard, exclude_from_history: boo
// On Mac there isn't an official standard for excluding data from clipboard, however
// there is an unofficial standard which is to set `org.nspasteboard.ConcealedType`.
//
// https://nspasteboard.org/
// See http://nspasteboard.org/ for details about the community standard.
if exclude_from_history {
unsafe {
clipboard
Expand All @@ -347,16 +347,16 @@ fn add_clipboard_exclusions(clipboard: &mut Clipboard, exclude_from_history: boo
}
}

/// OS X-specific extensions to the [`Set`](crate::Set) builder.
pub trait SetExtOsx: private::Sealed {
/// Apple-specific extensions to the [`Set`](crate::Set) builder.
pub trait SetExtApple: private::Sealed {
/// Excludes the data which will be set on the clipboard from being added to
/// third party clipboard history software.
///
/// http://nspasteboard.org/
/// See http://nspasteboard.org/ for details about the community standard.
fn exclude_from_history(self) -> Self;
}

impl SetExtOsx for crate::Set<'_> {
impl SetExtApple for crate::Set<'_> {
fn exclude_from_history(mut self) -> Self {
self.platform.exclude_from_history = true;
self
Expand Down

0 comments on commit 86d695b

Please sign in to comment.