Skip to content

Commit

Permalink
format + typecheck
Browse files Browse the repository at this point in the history
  • Loading branch information
Brendonovich committed Nov 13, 2024
1 parent 9c5b4cd commit a88a147
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 10 deletions.
5 changes: 1 addition & 4 deletions apps/desktop/src-tauri/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ use scap::frame::Frame;
use serde::{Deserialize, Serialize};
use serde_json::json;
use specta::Type;
use std::ffi::OsString;
use std::fs::File;
use std::io::BufWriter;
use std::io::{BufReader, Write};
Expand All @@ -52,18 +51,16 @@ use std::{
collections::HashMap, marker::PhantomData, path::PathBuf, process::Command, sync::Arc,
time::Duration,
};
use tauri::{AppHandle, LogicalPosition, Manager, Runtime, State, WindowEvent};
use tauri::{AppHandle, Manager, Runtime, State, WindowEvent};
use tauri_plugin_notification::{NotificationExt, PermissionState};
use tauri_plugin_shell::ShellExt;
use tauri_specta::Event;
use tokio::io::AsyncWriteExt;
use tokio::task;
use tokio::{
sync::{Mutex, RwLock},
time::sleep,
};
use upload::{get_s3_config, upload_image, upload_video, S3UploadMeta};
use uuid::Uuid;
use windows::{CapWindow, CapWindowId};

#[derive(specta::Type, Serialize, Deserialize, Clone, Debug)]
Expand Down
2 changes: 0 additions & 2 deletions apps/desktop/src-tauri/src/platform/macos/mod.rs
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
use std::ffi::c_void;

use cocoa::{
appkit::NSColor,
base::{id, nil},
foundation::NSString,
};
use core_graphics::{
base::boolean_t,
display::{CFDictionaryRef, CGRect},
window::{kCGWindowBounds, kCGWindowOwnerPID},
};
use objc::{class, msg_send, sel, sel_impl};

Expand Down
3 changes: 1 addition & 2 deletions apps/desktop/src-tauri/src/windows.rs
Original file line number Diff line number Diff line change
Expand Up @@ -417,8 +417,7 @@ pub fn position_traffic_lights(window: tauri::Window, controls_inset: Option<(f6
.ns_window()
.expect("Failed to get native window handle"),
),
&controls_inset
.and_then(|inset| Some(LogicalPosition::from(inset)))
&controls_inset.map(LogicalPosition::from)
.unwrap_or(DEFAULT_TRAFFIC_LIGHTS_INSET),
);
})
Expand Down
8 changes: 6 additions & 2 deletions crates/media/src/sources/audio_input.rs
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,13 @@ impl AudioInputSource {
.and_then(|configs| {
let mut configs = configs.collect::<Vec<_>>();
configs.sort_by(|a, b| {
b.sample_format().sample_size().cmp(&a.sample_format().sample_size())
b.sample_format()
.sample_size()
.cmp(&a.sample_format().sample_size())
});
configs.into_iter().find(|c| ffmpeg_sample_format_for(c.sample_format()).is_some())
configs
.into_iter()
.find(|c| ffmpeg_sample_format_for(c.sample_format()).is_some())
})
.and_then(|config| {
device
Expand Down
2 changes: 2 additions & 0 deletions packages/ui-solid/src/auto-imports.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,4 +56,6 @@ declare global {
const IconLucideRabbit: typeof import('~icons/lucide/rabbit.jsx')['default']
const IconLucideSearch: typeof import('~icons/lucide/search.jsx')['default']
const IconLucideVideo: typeof import('~icons/lucide/video.jsx')['default']
const IconLucideVolume2: typeof import('~icons/lucide/volume2.jsx')['default']
const IconLucideVolumeX: typeof import('~icons/lucide/volume-x.jsx')['default']
}

0 comments on commit a88a147

Please sign in to comment.