Skip to content

Commit

Permalink
use Path::join instead of format to ensure the separator is correct i…
Browse files Browse the repository at this point in the history
  • Loading branch information
johnathancn authored and schteve committed Oct 25, 2022
1 parent bf8d73e commit a6721d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion freertos-cargo-build/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ impl Builder {
let freertos_path = env::var(ENV_KEY_FREERTOS_SRC).unwrap_or_default();
let freertos_config_path = env::var(ENV_KEY_FREERTOS_CONFIG).unwrap_or_default();
let freertos_shim = env::var(ENV_KEY_FREERTOS_SHIM).unwrap_or_default();
let freertos_port_base = format!("{}{}", freertos_path, "portable");
let freertos_port_base = PathBuf::from(&freertos_path).join("portable");

let b = Builder {
freertos_dir: PathBuf::from(freertos_path),
Expand Down

0 comments on commit a6721d3

Please sign in to comment.