Skip to content

Commit 8fa71a5

Browse files
committed
fix build error
1 parent 9ee4dc9 commit 8fa71a5

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src-tauri/src/tasks/mod.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -149,11 +149,12 @@ mod shortcut {
149149
}
150150

151151
mod vscode {
152+
#[cfg(windows)]
152153
use std::os::windows::process::CommandExt;
154+
#[cfg(windows)]
155+
use crate::utils::winapi::CREATE_NO_WINDOW;
153156

154-
use crate::utils::winapi::CREATE_NO_WINDOW;
155-
156-
use super::*;
157+
use super::*;
157158

158159
pub fn open(args: &TaskArgs) -> Result<()> {
159160
let mut vscode_args = vec![args.workspace.to_str().expect("to_str err")];

0 commit comments

Comments
 (0)