Skip to content

Commit

Permalink
fix issue with canonicalize
Browse files Browse the repository at this point in the history
  • Loading branch information
maminrayej committed Sep 5, 2024
1 parent 42edb2b commit b1ee558
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/settings/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -671,10 +671,14 @@ impl Settings {

fn read_file_settings(config_file: &Path) -> Result<Option<(FileSettings, PathBuf)>> {
if config_file.is_file() {
#[cfg(not(target_vendor = "wasmer"))]

Check failure

Code scanning / clippy

unexpected cfg condition value: wasmer Error

unexpected cfg condition value: wasmer
let file_path_resolved = config_file
.canonicalize()
.with_context(|| "unable to resolve toml config file path")?;

#[cfg(target_vendor = "wasmer")]

Check failure

Code scanning / clippy

unexpected cfg condition value: wasmer Error

unexpected cfg condition value: wasmer
let file_path_resolved = config_file.to_owned();

let settings = FileSettings::read(&file_path_resolved).with_context(|| {
"unable to read toml config file because has invalid format or unsupported options"
})?;
Expand Down

0 comments on commit b1ee558

Please sign in to comment.