mirror of
https://github.com/logos-messaging/logos-messaging-rust-bindings.git
synced 2026-01-05 23:43:11 +00:00
build.rs fix clippy linter issue
This commit is contained in:
parent
b89a4a247e
commit
c4b6d2aab0
@ -9,7 +9,7 @@ fn submodules_init(project_dir: &Path) {
|
|||||||
let mark_file_path = ".submodules-initialized";
|
let mark_file_path = ".submodules-initialized";
|
||||||
|
|
||||||
// Check if the mark file exists
|
// Check if the mark file exists
|
||||||
if !Path::new(&mark_file_path).exists() {
|
if !Path::new(mark_file_path).exists() {
|
||||||
// If mark file doesn't exist, initialize submodule
|
// If mark file doesn't exist, initialize submodule
|
||||||
if Command::new("git")
|
if Command::new("git")
|
||||||
.args(["submodule", "init"])
|
.args(["submodule", "init"])
|
||||||
@ -32,7 +32,7 @@ fn submodules_init(project_dir: &Path) {
|
|||||||
.expect("Failed to execute 'make update'")
|
.expect("Failed to execute 'make update'")
|
||||||
.success()
|
.success()
|
||||||
{
|
{
|
||||||
std::fs::File::create(&mark_file_path).expect("Failed to create mark file");
|
std::fs::File::create(mark_file_path).expect("Failed to create mark file");
|
||||||
} else {
|
} else {
|
||||||
panic!("Failed to run 'make update' within nwaku folder.");
|
panic!("Failed to run 'make update' within nwaku folder.");
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user