Skip to content

Commit 1048572

Browse files
committed
Clippy false positive.
1 parent 0656a66 commit 1048572

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/macos/keyboard.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,9 @@ static NSEventModifierFlagCommand: u64 = 1 << 20;
3232
const BUF_LEN: usize = 4;
3333

3434
#[cfg(target_os = "macos")]
35+
#[allow(clippy::duplicated_attributes)]
3536
#[link(name = "Cocoa", kind = "framework")]
36-
#[link(name = "Carbon")]
37+
#[link(name = "Carbon", kind = "framework")]
3738
extern "C" {
3839
fn TISCopyCurrentKeyboardLayoutInputSource() -> TISInputSourceRef;
3940
fn TISCopyCurrentKeyboardInputSource() -> TISInputSourceRef;

0 commit comments

Comments
 (0)