mirror of
https://github.com/uqbar-dao/nectar.git
synced 2024-12-24 00:53:37 +03:00
Format Rust code using rustfmt
This commit is contained in:
parent
9e038f6938
commit
dcac68af07
6
build.rs
6
build.rs
@ -185,11 +185,7 @@ fn main() {
|
|||||||
// If Cargo.toml is present, build the app
|
// If Cargo.toml is present, build the app
|
||||||
let parent_pkg_path = format!("{}/pkg", entry_path.display());
|
let parent_pkg_path = format!("{}/pkg", entry_path.display());
|
||||||
if entry_path.join("Cargo.toml").exists() {
|
if entry_path.join("Cargo.toml").exists() {
|
||||||
build_app(
|
build_app(&entry_path.display().to_string(), &package_name, None);
|
||||||
&entry_path.display().to_string(),
|
|
||||||
&package_name,
|
|
||||||
None,
|
|
||||||
);
|
|
||||||
} else if entry_path.is_dir() {
|
} else if entry_path.is_dir() {
|
||||||
fs::create_dir_all(&parent_pkg_path).unwrap();
|
fs::create_dir_all(&parent_pkg_path).unwrap();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user