diff --git a/clash_lib/src/proxy/utils/socket_helpers.rs b/clash_lib/src/proxy/utils/socket_helpers.rs index 3ace92d5a..00578fa08 100644 --- a/clash_lib/src/proxy/utils/socket_helpers.rs +++ b/clash_lib/src/proxy/utils/socket_helpers.rs @@ -9,7 +9,6 @@ use tokio::{ net::{TcpSocket, TcpStream, UdpSocket}, time::timeout, }; -use tracing::warn; use super::Interface; use crate::{app::dns::ThreadSafeDNSResolver, proxy::AnyStream}; diff --git a/scripts/build.sh b/scripts/build.sh index 0aeac7797..368c31dc8 100644 --- a/scripts/build.sh +++ b/scripts/build.sh @@ -5,6 +5,7 @@ set -xe [ ! -d "target/artifacts" ] && mkdir -p target/artifacts for TARGET in $1; do + TARGET = $TARGET | tr -d '[:space:]' | tr -d '\n' | tr -d '\r' echo "building for $TARGET" rustup target add $TARGET cargo build -p clash --target $TARGET --release