💚 更新调试输出以忽略未使用的变量

This commit is contained in:
BTMuli
2025-05-09 23:35:35 +08:00
parent 0bb774f2c2
commit 1e2c479cee

View File

@@ -19,7 +19,8 @@ pub fn get_window_size2(monitor: Monitor, width: f64, height: f64) -> (f64, f64)
let height_scale = monitor_height / 1080.0;
let mut get_width: f64 = 0.0;
let mut get_height: f64 = 0.0;
dbg!(get_width, get_height); // 防止never read
// 忽略未使用
println!("{} {}", get_width, get_height);
get_width = (width * width_scale / monitor_scale).round();
get_height = (height * height_scale / monitor_scale).round();
#[cfg(target_os = "macos")]