### What it does Suggest to create `PathBuf`s using `Path::join` (or maybe `PathBuf::push` in some circumstances) instead of string formatting. ### Lint Name path_format ### Category suspicious ### Example ```rust PathBuf::from(format!("{}/foo/bar", base_path)); // or PathBuf::from(format!("{}\\foo\\bar", base_ath)); ``` could be written as ```rust Path::new(base_path).join("foo").join("bar") ``` <!-- TRIAGEBOT_START --> <!-- TRIAGEBOT_ASSIGN_START --> <!-- TRIAGEBOT_ASSIGN_DATA_START$${"user":"merelymyself"}$$TRIAGEBOT_ASSIGN_DATA_END --> <!-- TRIAGEBOT_ASSIGN_END --> <!-- TRIAGEBOT_END -->