llogiq
llogiq
We may want to have one nightly build that runs clippy over our code. Clippy gets new and improved lints all the time, so having it run could be useful.
Hi there! I have an operation I want to benchmark which accesses a directory within the environment. What is the current working directory the benchmarks are run in? Also I...
I sometimes see this in code from iterative-minded folks, they iterate over something, collecting the result in a `Vec`. Then they iterate over the `Vec`, producing yet another `Vec`. In...
If you create a collection type, avoid allocating until the first element is inserted. This has the nice property of being able to avoid allocation altogether if the collection stays...
If I want to ignore matches in a certain region of my text, I currently need to loop until `.next()` returns `None` or the `.start()` of the returned `Match` is...
`Arc` only implements `Send`+`Sync` for contained types that are themselves `Send` and `Sync`. So wrapping a non-`Send`/`Sync` type in an Arc won't make it shareable. Using a `Rc` instead could...
This is something that works in JDT and CDT, and as Rust uses local type inference, it's a massively useful feature. If you don't know how it works, let's suppose...
This is for Log4J2 – `System.out.printf("%d", 3.1415)` gets a warning, whereas `log.printf(Level.INFO, "%d", 3.1415)` is not detected.
We should have some document that outlines which mutations are actually there and what they do to the code.