Skip to content

Commit 6e12f9f

Browse files
fangyi-zhoufacebook-github-bot
authored andcommitted
Add unix only tag for unix-only import in LSP test (#1081)
Summary: This diff fixes open source windows build. In L78-L83 of the file, the code block accessing unix permissions are already tagged `#[cfg(unix)]`. This diff adds the same config tag on the import so that windows build can be fixed. Pull Request resolved: #1081 Reviewed By: kinto0, ndmitchell Differential Revision: D82327050 Pulled By: rchen152 fbshipit-source-id: 7bc4cd173ca9c0a068ff2768708416cb7525fbae
1 parent 3b06a5a commit 6e12f9f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pyrefly/lib/test/lsp/lsp_interaction/configuration.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
*/
77

88
use std::fs;
9+
#[cfg(unix)]
910
use std::os::unix::fs::PermissionsExt;
1011

1112
use lsp_server::Message;

0 commit comments

Comments
 (0)