

12·
10 days agoSort of cool from an engineering standpoint, but realistically the best layer of security for WhatsApp is to not use it. Meta is a security vulnerability.


Sort of cool from an engineering standpoint, but realistically the best layer of security for WhatsApp is to not use it. Meta is a security vulnerability.
The strict_* set of integer function look interesting though I’m unlikely to use something that panics by design. I’m sure that’s useful in programs that panic to indicate problems. Do those exist? I always treat panics as a design failure.
Duration::from_mins() is useful for me since I’ve been doing Duration::from_secs(minutes * 60) for some things in my projects, which bugged me a bit.
User named 1984 wanting us to talk… hmmm
Your usage and implementation of
get_files_in_diris quite awkward. It is returningNoneon errors and then you’re returningOk(())when it returnsNone, ignoring a bunch of errors. Why not just haveget_files_in_dirreturn aResult<Vec<PathBuf>, io::Error>? You could drastically simplify the function by just?ing the results.