abobla@lemm.ee to Linux@lemmy.ml · edit-213 hours agoMalicious Go Modules Deliver Disk-Wiping Linux Malware in Advanced Supply Chain Attackthehackernews.comexternal-linkmessage-square20fedilinkarrow-up11arrow-down10file-text
arrow-up11arrow-down1external-linkMalicious Go Modules Deliver Disk-Wiping Linux Malware in Advanced Supply Chain Attackthehackernews.comabobla@lemm.ee to Linux@lemmy.ml · edit-213 hours agomessage-square20fedilinkfile-text
Packages: github.com/truthfulpharm/prototransform github.com/blankloggia/go-mcp github.com/steelpoor/tlsproxy
minus-squareabobla@lemm.eeOPlinkfedilinkarrow-up0·9 hours agoI’m already writing my own dependency to check if a number is even: if (number == 0) return true if (number == 1) return false if (number == 2) return true if (number == 3) return false I’m almost there!
minus-squareCptKrkIsClmbngThMntn [any]@hexbear.netlinkfedilinkEnglisharrow-up0·8 hours agoYou’ve probably covered 90% of use cases there so you’re doing well! I’m trying to port your code to Rust but the compiler keeps giving me an error about non-exhaustive match arms
minus-squareKazumara@discuss.tchncs.delinkfedilinkarrow-up0·8 hours agoIt’s quite cruel of that compiler not being happy until you’re exhausted.
minus-squareabobla@lemm.eeOPlinkfedilinkarrow-up0·8 hours agothis is so sad, I’m gonna pray for you in rust
minus-squareCptKrkIsClmbngThMntn [any]@hexbear.netlinkfedilinkEnglisharrow-up0·6 hours agoAssuming you’re monotheistic, I believe you can use an mpsc channel to send those asynchronously.
I’m already writing my own dependency to check if a number is even:
if (number == 0) return true if (number == 1) return false if (number == 2) return true if (number == 3) return false
I’m almost there!
You’ve probably covered 90% of use cases there so you’re doing well!
I’m trying to port your code to Rust but the compiler keeps giving me an error about non-exhaustive match arms
It’s quite cruel of that compiler not being happy until you’re exhausted.
this is so sad, I’m gonna pray for you in rust
Assuming you’re monotheistic, I believe you can use an mpsc channel to send those asynchronously.