

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 ;)
cargo update
… It’s that simple.
That’s awesome. I think I might get into MC modding…
Good job. I fell for it
Beware of child predators
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
I didn’t know it was native too!
I’d actually recommend consent-o-matic instead of IDCAC. It actually selects the minimum concent for you instead of just hiding it.
I think the meme refers to the joke that “all guys just want a big tiddy goth girlfriend” meme.
The bottom text is just a joke to divert from the obvious meme
Name aside, looks great
I found the best corner of lemmy
Op, that’s not hate. It’s rabies
How does it fare on BTRFS? Does it go into mounted subvolumes?
Sorry, but we’ll have to
cargo clippy -fix
you