1. 37
    1. 39

      If your function panics because of invalid inputs or invalid state that was caller’s responsibility to uphold, add #[track_caller] to the function. It will change displayed location of the panic to the the caller’s location, so that they can see where they have messed up.

      1. 6

        🤯 I had no idea this was a thing! Would’ve helped me track down quite a few errors.