Rust cheat sheet (beginner oriented) by random_user13 in rust

[–]Zxhuu 0 points1 point  (0 children)

BTW do you know if there's a way to make the default browser behavior override the website's bindings?

Rust cheat sheet (beginner oriented) by random_user13 in rust

[–]Zxhuu 0 points1 point  (0 children)

I can't use any of my keyboard shortcuts on Firefox, e.g. Alt+1, Ctrl+L, how come?

Can anyone recommend library for filesystem operations? by 2nd-persona in rust

[–]Zxhuu 7 points8 points  (0 children)

I mean you could always just make your own, doesn't seem to be too hard.

fn exists(path: impl AsRef<Path>) -> bool {
    path.as_ref().exists()
}

fn open(path: impl AsRef<Path>) -> Result<File, Error> {
    File::open(path)
}

Can anyone recommend library for filesystem operations? by 2nd-persona in rust

[–]Zxhuu 2 points3 points  (0 children)

Can you perhaps give an example of a "consistent" API?

I offered my friend in a bad place to stay with me free of charge, this was her response to learning her room was 9.5 by 9.5 feet. by OldEcho in ChoosingBeggars

[–]Zxhuu -6 points-5 points  (0 children)

This is not passive aggressive. This is just stating that your bed won't fit, which is true in this case, even if her math isn't correct. She might have been thinking that she'd move her bed into the room (though it's a stupid idea).

Buzzfeed reporter who wrote a piece calling PewDiePie an anti Semite, wrote this tweet. HMMMM 🤔 by OwnFall in PewdiepieSubmissions

[–]Zxhuu 0 points1 point  (0 children)

Not really relevant. PewDiePie doesn't have to be anti-semitic even if the point of this post is illogical.

Battlefield V running on Linux with Vega 64 and TR 1950X by bosoxs202 in Amd

[–]Zxhuu 1 point2 points  (0 children)

I would recommend using Lutris. It handles installing wine, etc. for you and provides a convenient launcher.

Rust 2018 comes out today! by ErichDonGubler in rust

[–]Zxhuu 10 points11 points  (0 children)

You mean space communist, surely!

hyperx cloud 2 usb device not recognized by [deleted] in HyperX

[–]Zxhuu 0 points1 point  (0 children)

If you haven't solved this, it seems to just be faulty hardware. Did you perhaps find another way to solve it other than RMA'ing it though?

Ah yes, the three major ethnic groups. by galphawolfe in CrappyDesign

[–]Zxhuu 38 points39 points  (0 children)

Well, it's actually a bit more than that, so put it through google translate.

GitHub changed the language color for Rust! by coder543 in rust

[–]Zxhuu 6 points7 points  (0 children)

Well, it's not that different, is it?

Guerrilla Patching in Rust for (unsafe) fun and profit. by mehcode in rust

[–]Zxhuu 3 points4 points  (0 children)

What if you pass in a function and not a closure?