Skip to content

Commit

Permalink
Fix unused variable warning in release
Browse files Browse the repository at this point in the history
  • Loading branch information
mohanson committed Sep 26, 2024
1 parent f7c7b7f commit 34795f1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
4 changes: 1 addition & 3 deletions src/high_level.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
use crate::ckb_constants::*;
use crate::debug;
use crate::error::SysError;
use crate::syscalls;
use alloc::{ffi::CString, string::String, vec, vec::Vec};
Expand Down Expand Up @@ -567,8 +566,7 @@ impl<T, F: Fn(usize, Source) -> Result<T, SysError>> Iterator for QueryIter<F> {
}
Err(SysError::IndexOutOfBound) => None,
Err(err) => {
debug!("QueryIter error {:?}", err);
panic!("QueryIter query_fn return an error")
panic!("QueryIter error {:?}", err);
}
}
}
Expand Down
8 changes: 4 additions & 4 deletions test/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ build:
cd ../contracts && RUSTFLAGS="-C target-feature=-a" cargo build --target riscv64imac-unknown-none-elf

build-examples:
cd ../examples && RUSTFLAGS="-C target-feature=-a" cargo build --features build-with-clang --example always_failure --target riscv64imac-unknown-none-elf
cd ../examples && RUSTFLAGS="-C target-feature=-a" cargo build --features build-with-clang --example always_success --target riscv64imac-unknown-none-elf
cd ../examples && RUSTFLAGS="-C target-feature=-a" cargo build --features build-with-clang --example atomic --target riscv64imac-unknown-none-elf
cd ../examples && RUSTFLAGS="-C target-feature=-a" cargo build --features build-with-clang --example type_id --target riscv64imac-unknown-none-elf --features "type-id"
cd ../examples && RUSTFLAGS="-C target-feature=-a" cargo build --target riscv64imac-unknown-none-elf --features build-with-clang --example always_failure
cd ../examples && RUSTFLAGS="-C target-feature=-a" cargo build --target riscv64imac-unknown-none-elf --features build-with-clang --example always_success
cd ../examples && RUSTFLAGS="-C target-feature=-a" cargo build --target riscv64imac-unknown-none-elf --features build-with-clang --example atomic
cd ../examples && RUSTFLAGS="-C target-feature=-a" cargo build --target riscv64imac-unknown-none-elf --features build-with-clang,type-id --example type_id

clean:
rm -rf ../build
Expand Down

0 comments on commit 34795f1

Please sign in to comment.