Skip to content

Commit 24c5cb2

Browse files
Review
1 parent 3ac0d81 commit 24c5cb2

3 files changed

Lines changed: 3 additions & 2 deletions

File tree

desktop/src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,5 @@ pub fn start() -> ExitCode {
169169
_ => {}
170170
}
171171

172-
#[cfg(not(target_os = "windows"))]
173172
ExitCode::SUCCESS
174173
}

desktop/ui/src/frames/import.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,11 @@ pub(crate) enum TextureImportError {
1515
InvalidHandle(String),
1616
#[error("Unsupported texture format: {format:?}")]
1717
UnsupportedFormat { format: cef_color_type_t },
18+
#[cfg(not(target_os = "macos"))]
1819
#[error("Hardware acceleration not available: {reason}")]
1920
HardwareUnavailable { reason: String },
2021
#[error("Vulkan operation failed: {operation}")]
22+
#[cfg(target_os = "linux")]
2123
VulkanError { operation: String },
2224
#[error("Platform-specific error: {message}")]
2325
PlatformError { message: String },

desktop/ui/src/remote/spawn.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ pub(crate) struct HostHandle {
2323
child: Arc<Mutex<Child>>,
2424
shutting_down: Arc<AtomicBool>,
2525
died_reported: Arc<AtomicBool>,
26-
#[cfg_attr(not(feature = "accelerated_paint"), expect(dead_code))]
26+
#[cfg_attr(any(not(feature = "accelerated_paint"), target_os = "windows"), expect(dead_code))]
2727
host_acceleration: bool,
2828
#[cfg(target_os = "windows")]
2929
_job: Option<platform::win::KillOnCloseJob>,

0 commit comments

Comments
 (0)