diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 546ea18..a4ddd2c 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -33,17 +33,17 @@ jobs: run: | cargo fmt -- --check - - name: Cargo build + - name: Cargo Build id: cargo_build run: | cargo build --verbose - - name: Cargo test + - name: Cargo Test id: cargo_test run: | cargo test --verbose - - name: Run SPIR-Q examples + - name: Run SPIR-Q Examples id: spirq_examples run: | cargo run --example gallery > spirq/examples/gallery/main.log @@ -61,7 +61,7 @@ jobs: diff assets/spirv-spec.frag.json assets/spirv-spec.frag.spv.json cargo run -p shader-reflect assets/moon.spv -o assets/moon.spv.json --reference-all-resources - - name: Assemble-disassemble Roundtrip + - name: Assemble Disassemble Roundtrip id: cargo_build_and_test run: | cargo run -p spirq-as assets/gallery.frag.spvasm -o assets/gallery.frag.spv diff --git a/spirq-core/src/parse/instr.rs b/spirq-core/src/parse/instr.rs index 01ed2fd..ffe3fea 100644 --- a/spirq-core/src/parse/instr.rs +++ b/spirq-core/src/parse/instr.rs @@ -220,7 +220,9 @@ impl<'a> Operands<'a> { pub fn read_str(&mut self) -> Result<&'a str> { use std::ffi::CStr; // Find the word with a trailing zero. - let ieos = self.0.iter() + let ieos = self + .0 + .iter() .position(|x| (x >> 24) == 0) .ok_or(anyhow!("string is not null-terminated"))?;