Skip to content

Commit b58e42c

Browse files
Fix macOS broken lints (#18)
1 parent 398715d commit b58e42c

File tree

4 files changed

+6
-4
lines changed

4 files changed

+6
-4
lines changed

crates/fig_desktop/src/local_ipc/commands.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -272,6 +272,7 @@ pub fn dump_state(
272272
))))
273273
}
274274

275+
#[allow(unused_variables)]
275276
pub async fn connect_to_ibus(proxy: EventLoopProxy, platform_state: &PlatformState) -> LocalResult {
276277
cfg_if::cfg_if! {
277278
if #[cfg(target_os = "linux")] {

crates/fig_desktop/src/platform/macos.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ struct Unmanaged {
147147
}
148148

149149
#[derive(Debug, Serialize)]
150-
pub(super) struct PlatformStateImpl {
150+
pub struct PlatformStateImpl {
151151
#[serde(skip)]
152152
proxy: EventLoopProxy,
153153
#[serde(skip)]

crates/fig_desktop/src/platform/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@ impl PlatformState {
104104
}
105105

106106
/// Returns the platform specific implementation.
107+
#[allow(dead_code)]
107108
pub fn inner(&self) -> Arc<PlatformStateImpl> {
108109
Arc::clone(&self.0)
109110
}

crates/fig_util/src/directories.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -640,9 +640,9 @@ mod tests {
640640

641641
#[test]
642642
fn snapshot_themes_dir() {
643-
linux!(themes_dir(), @"/usr/share/fig/themes");
644-
macos!(themes_dir(), @"/Applications/Amazon Q.app/Contents/Resources/themes");
645-
windows!(themes_dir(), @r"C:\Users\$USER\AppData\Local\Fig\userdata\themes\themes");
643+
linux!(themes_dir(&Context::new()), @"/usr/share/fig/themes");
644+
macos!(themes_dir(&Context::new()), @"/Applications/Amazon Q.app/Contents/Resources/themes");
645+
windows!(themes_dir(&Context::new()), @r"C:\Users\$USER\AppData\Local\Fig\userdata\themes\themes");
646646
}
647647

648648
#[test]

0 commit comments

Comments
 (0)