

It’s super useful for TryStream
s with next()
. I often want to ?
the result up, so that I can have a clean item in my while let
loop
It’s super useful for TryStream
s with next()
. I often want to ?
the result up, so that I can have a clean item in my while let
loop
In general, apps/bins should strive for the latest msrv and lastest dependencies
Libraries should do the reverse and try for the lowest msrv and dependencies version (That actually work! Don’t put version = "1"
when you need 1.4.2
!)
Be careful to not upgrade Libraries, as it implicitly bump the msrv ;)
Change the ❌ for a ♻️. It almost looks like a "what Paris did wrong " section
cargo update
… It’s that simple.
Netgear is one letter away from nepgear… So they must do other game consoles, right?
Now do brainpower
NGL I like that aesthetic. Not something to live in of course, nor want to see it irl, but it’s pleasing to see
That’s awesome. I think I might get into MC modding…
Technically yes, but a newbie doesn’t need that. I doubt it’s an application that performance is so critical either.
Too much premature optimisation IMO
It’s quite simple. Just remove the permalink
field! If you are calculating it then no need to store it in the struct.
If you do need the field to be there (ex you serialise it with serde), then create a method called new
that takes everything but the permalink, construct your permalink there, then return a new object.
Your permalink method can now just be self.permalink.to_string()
P.S. in the second case I’d recommend to change the return type of self.permalink()
to &str
. It avoids unnecessary cloning of the string.
I wouldn’t mind having a explanation of what you want to do instead of the code. It’s not quite clear what you mean.
Anyways, what you want is to transform an iterator (your Select) into an iterator of Option<String>?
For that, there’s multiple ways but here’s the simplest:
link_nodes.map(|node| node.value().attr("href").to_string())
Essentially, for each elements, we execute a closure (arrow function in JavaScript) that transform the node into your href string.
P.S. can’t guarantee it works, I don’t know what this “Select” type is, and I’m programming on mobile
Usb killer: you guys do things with the computer?
No idea for Tiberius, but for SQLite I’m stuck with converting to timestamp and back. Ugly but works
P.S. add a getter to your data struct and you can be “seamless”
Sadly sqlx seems to have gone semi-proprietary with their MSQL driver. Personally never understood the appeal of mssql when there’s Postgres and SQLite, but hey, it does work.
I’ve started using welds as my new ORM of choice as SeaORM and Diesel is just not a friendly experience, and supports Mssql OOB. So it’s nice there’s still options for it.
Half joking. Lifetimes can be hard but once you understand the concept it’s quite easy.
The second joke is about you never learn Rust. You’re always on the learning rollercoaster. Always one step away but each time it makes you rethink the whole language.
Don’t get me wrong, I’m a rust main. But does issues does exist
Rewrite it in rust. Now get a lifetime of problems
What? No! I leave at 6pm. (But start at 2)
What about chess battle advanced?
Sorry, but we’ll have to
cargo clippy --fix
you