Skip to content

Commit efd25d1

Browse files
authored
chore: remove un-used vars and flags (#1998)
Signed-off-by: Peefy <[email protected]>
1 parent 09775b7 commit efd25d1

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

kclvm/runner/src/linker.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@ impl Command {
5454
.cargo_metadata(false)
5555
.no_default_flags(false)
5656
.pic(true)
57-
.shared_flag(true)
5857
.opt_level(0)
5958
.target(&target)
6059
.host(&target)

kclvm/runtime/src/net/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ pub extern "C-unwind" fn kclvm_net_to_IP6(
238238
let s = format!("{addr}");
239239
return ValueRef::str(s.as_ref()).into_raw(ctx);
240240
}
241-
Err(e) => {
241+
Err(_) => {
242242
match Ipv4Addr::from_str(ip.as_ref()) {
243243
Ok(addr) => {
244244
// Convert IPv4 to IPv6-mapped address (::ffff:0:0/96)

0 commit comments

Comments
 (0)