Lightfire228

joined 2 years ago
[–] Lightfire228@pawb.social 5 points 1 month ago* (last edited 1 month ago)

To explain

There are 2 Error struct / enum declarations, probably in separate files

To the ?, they are different types and cannot be converted from one to the other (because they are two disparate structs that happen to have the same name, but can have different bodies)

To fix this

You can either use .some_func_result().map_err(|err| /* conversion here/*)?; +

Or you can impl From<Error1> for Error2

And you should also name it ThingError, so you can visually differentiate the two


+ There are like 10 different mapping functions, depending on if you're using an option or a result

I never remember which one specifically i need, (unwrap_or, map_or, map_or_else, ok, ok_or)

I usually just hunt through the auto complete list until i find the function signature that gives me what i need

[–] Lightfire228@pawb.social 13 points 1 month ago

The SoC on the motherboard has a special EDL mode

This is kinda like the SoC's pre-bootloader, which loads the bootloader and can be used to flash a new bootloader

EDL mode is locked behind vendor specific certs/keys, so it's unaccessible to the device owner

[–] Lightfire228@pawb.social 2 points 1 month ago

Pizza,

Or, in my case, Spagut

[–] Lightfire228@pawb.social 8 points 1 month ago

Buggies? Or just "furries"

There are a surprising number of moth and bee 'sonas, but the terms aren't well defined

[–] Lightfire228@pawb.social 14 points 1 month ago (4 children)

Can confirm, "scalies"

For birds it's "avian"

[–] Lightfire228@pawb.social 4 points 1 month ago (1 children)

I mean to say, the metaphor is apt, but historically inaccurate

[–] Lightfire228@pawb.social 10 points 1 month ago (3 children)

The pyramids weren't built by slave labor

[–] Lightfire228@pawb.social 2 points 1 month ago

Those controller-eyes are giving Steel Inquisitor

[–] Lightfire228@pawb.social 6 points 1 month ago

Oh my posh spotted

[–] Lightfire228@pawb.social 6 points 1 month ago (1 children)

Look, look with your special eyes!

[–] Lightfire228@pawb.social 6 points 1 month ago

A pill calendar is really handy. When you take pills once daily, it's really easy to forget if you've taken today's since your brain just filters it out

But taking a second dose can be dangerous, so a pill calendar gives you visual conformation that you have indeed taken today's pills

view more: ‹ prev next ›