| Commit message (Collapse) | Author | Age | Files | Lines | |
|---|---|---|---|---|---|
| * | Remove allow(clippy::disallowed_methods) lint. | Nick Mathewson | 2022-03-30 | 1 | -1/+0 |
| | | |||||
| * | use wallclock where possible in tests | trinity-1686a | 2022-02-26 | 1 | -0/+1 |
| | | |||||
| * | tor-netdir: Resolve an XXXX about type ugliness | Nick Mathewson | 2021-12-08 | 1 | -4/+5 |
| | | | | | | | | | | | | | | | | We had no function to infallibly convert BoundedInt32<{0 or 1},H> into a u32, even though we could have. Because of that, we were treating weight_scale as an i32 when logically it's a u32 or a NonZeroU32. Moreover, it turns out we were using an incorrect minimum for the bwweightscale param, which would in theory have allowed the authorities to make us divide by zero. This patch introduces the necessary From<> implementation and uses it. It corrects the binimum bwweightscale, and prevents a division-by-zero issue in case weight_scale is zero. | ||||
| * | tor-netdir: Use bitflags for WeightKind | Neel Chauhan | 2021-11-30 | 1 | -34/+49 |
| | | |||||
| * | Merge remote-tracking branch 'origin/mr/71' | Nick Mathewson | 2021-09-08 | 1 | -0/+1 |
| |\ | |||||
| | * | fix/silence clippy lints in test modules | Daniel Eades | 2021-09-08 | 1 | -0/+1 |
| | | | |||||
| * | | Add validation function to WeightSet | Nick Mathewson | 2021-09-08 | 1 | -1/+18 |
| |/ | | | | | Our relay selection code can give wrong answers if we overflow u64::MAX, so let's make sure we never do that. | ||||
| * | Move all crates into a `crates` subdirectory. | Nick Mathewson | 2021-08-27 | 1 | -0/+625 |
| This will cause some pain for now, but now is really the best time to do this kind of thing. | |||||
