Fix CI
This commit is contained in:
parent
826e391f87
commit
aad93fef84
3 changed files with 6 additions and 2 deletions
4
backend/rust-toolchain.toml
Normal file
4
backend/rust-toolchain.toml
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
[toolchain]
|
||||
channel = "nightly-2025-03-14"
|
||||
targets = [ "x86_64-unknown-linux-gnu" ]
|
||||
profile = "default"
|
||||
|
|
@ -66,7 +66,7 @@ pub fn merge_text(parent: &str, left: &str, right: &str) -> String {
|
|||
pub fn is_binary(data: &[u8]) -> bool {
|
||||
set_panic_hook();
|
||||
|
||||
if data.iter().any(|&b| b == 0) {
|
||||
if data.contains(&0) {
|
||||
// Even though the NUL character is valid in UTF-8, it's highly suspicious in
|
||||
// human-readable text.
|
||||
return true;
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@ print_failed_log() {
|
|||
|
||||
# Only consider non-zero exit codes as failures
|
||||
if [ $exit_code -ne 0 ]; then
|
||||
echo "Process ${pids[$i-1]} failed with exit code $exit_code. Log file: $(pwd)/log_${i}.log"
|
||||
echo "Process ${pids[$i-1]} failed with exit code $exit_code. Log file: $(pwd)/logs/log_${i}.log"
|
||||
return 0
|
||||
else
|
||||
echo "Process ${pids[$i-1]} completed successfully with exit code 0"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue