From e0f1e9c0b27264693338d4e424e5128777f21e05 Mon Sep 17 00:00:00 2001 From: Artem Goncharov Date: Tue, 25 Mar 2025 12:50:16 +0100 Subject: [PATCH] Format generated Rust code Change-Id: I75d43d3280d2353d5038b6bce714a186bd9cf956 --- playbooks/rust/all.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/playbooks/rust/all.yaml b/playbooks/rust/all.yaml index 139ce93..42718e1 100644 --- a/playbooks/rust/all.yaml +++ b/playbooks/rust/all.yaml @@ -35,6 +35,11 @@ cmd: "cargo clippy --fix --lib --tests --bins --allow-dirty" chdir: "{{ rust_project_dir }}" + - name: "Format generated code" + ansible.builtin.command: + cmd: "cargo fmt" + chdir: "{{ rust_project_dir }}" + - name: "Compile new code (only generated crates)" ansible.builtin.command: cmd: "cargo build -p openstack_sdk -p openstack_cli -p openstack_tui"