Skip Navigation

User banner
InitialsDiceBearhttps://github.com/dicebear/dicebearhttps://creativecommons.org/publicdomain/zero/1.0/„Initials” (https://github.com/dicebear/dicebear) by „DiceBear”, licensed under „CC0 1.0” (https://creativecommons.org/publicdomain/zero/1.0/)LI
Posts
2
Comments
320
Joined
2 yr. ago

  • I can confirm, I've never used a non memory managed language, and the Rust borrow checker is a massive kick in the teeth

    But, the more i consider it from the perspective of memory, and pointers, the borrow checker makes a lot of sense

    Especially when storing references inside structs, and how mutability affects references

    I actually figured out i could fix a re-mutable borrow error by performing the two mutable operations in separate for loops

  • The prostate is the male G spot, and enjoying anal stimulation is perfectly normal for males regardless of sexual orientation


    Also, if you do experiment, don't stick anything up there without a flared base. Otherwise it will get lost and you will have to explain yourself to the ER

  • Blue cheese is intentionally inoculated with mold. Specifically penicillium mold that is perfectly safe to eat.

    If a cheese "naturally" develops mold, there's a good chance it could be harmful, so don't eat that

  • Kids are gonna kids

    I don't understand what teachers think a "banned words list" is gonna accomplish except being the new target of bored kids/teens

    (Unless they're just tired of hearing it, but this isn't a good solution imo)

  • 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

  • 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

  • Zits

    Jump
  • I'll be honest,

    If I'm driving down a frequently used route, and the person in front of me is going 5-8 mph slower than i usually do

    I'll go into "autopilot" and start to creep up on them.

    If i realize I'm doing it, I'll back away

  • Unpopular Opinion @lemmy.world

    Overalls are far more comfortable than pants

    cats @lemmy.world

    Neopolitan - goes by Neo