mirror of
https://github.com/slint-ui/slint.git
synced 2025-10-01 06:11:16 +00:00
Use env::var_os instead of env::var
For the unliekly case in which the git repository is checked out in a directory that cannot be represented with unicode
This commit is contained in:
parent
31da762245
commit
0553ab8b1a
4 changed files with 12 additions and 12 deletions
|
@ -131,7 +131,7 @@ pub fn sixtyfps(stream: TokenStream) -> TokenStream {
|
|||
|
||||
let (syntax_node, mut diag) = parser::parse_tokens(tokens.clone());
|
||||
|
||||
if let Ok(cargo_manifest) = std::env::var("CARGO_MANIFEST_DIR") {
|
||||
if let Some(cargo_manifest) = std::env::var_os("CARGO_MANIFEST_DIR") {
|
||||
diag.current_path = cargo_manifest.into();
|
||||
diag.current_path.push("Cargo.toml");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue