From 06752738015e65e4d475684a9fa5b85aa87b4ba3 Mon Sep 17 00:00:00 2001 From: Taylor Holliday Date: Tue, 21 Feb 2023 15:26:22 -0800 Subject: [PATCH] Formatting --- src/macos/window.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/macos/window.rs b/src/macos/window.rs index 73d1c20..bcbe67c 100644 --- a/src/macos/window.rs +++ b/src/macos/window.rs @@ -488,14 +488,14 @@ pub enum ClipboardDataType { String, } -pub fn copy_to_clipboard(data: String, dataType: ClipboardDataType) { +pub fn copy_to_clipboard(data: String, data_type: ClipboardDataType) { unsafe { let pb = NSPasteboard::generalPasteboard(nil); let data = NSData::dataWithBytes_length_(nil, data.as_ptr() as *const c_void, data.len() as u64); - let pb_type = match dataType { + let pb_type = match data_type { ClipboardDataType::String => cocoa::appkit::NSPasteboardTypeString, };