aboutsummaryrefslogtreecommitdiff
path: root/tor-netdoc/src
Commit message (Collapse)AuthorAgeFilesLines
* Move all crates into a `crates` subdirectory.Nick Mathewson2021-08-2728-9436/+0
| | | | | This will cause some pain for now, but now is really the best time to do this kind of thing.
* Tweaks on patch to add clippy::unwrap_used lint.Nick Mathewson2021-08-271-3/+1
| | | | | | | The most frequent changes are: - Rewording messages about poisoned locks - Correcting some error types
* Move "use_unwrap" lint from some to want listS0AndS02021-08-251-1/+2
| | | | | | | | And convert some `add_or_port` calls to use `SocketAddr` instead of parse + unwrap on strings. > Note, this last change is only for IPv4 addresses, for now, and only > within tests.
* WIP: Add the "unwrap_used" lint.S0AndS02021-08-248-20/+84
| | | | | | | | | | | | | | | | | > Check `unwrap_used` section of Clippy documentation for details; > > https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used This adds the following Clippy configuration to crates; #![deny(clippy::unwrap_used)] **Warning** while tests and compiler do not show any errors, the submitted changes are very much a Work In Progress and mistakes may have been made. Check https://gitlab.torproject.org/tpo/core/arti/-/merge_requests/67 Merge Request thread for more details.
* Use unwrap_or_default instead of unwrap_or_else(Default::default)rls2021-08-231-1/+1
|
* Fix a few things that the "typos" tool didn't like.Nick Mathewson2021-08-202-3/+3
|
* Typo fixes.Nick Mathewson2021-08-204-5/+5
|
* Merge remote-tracking branch 'origin/mr/60'Nick Mathewson2021-08-181-0/+1
|\
| * Add the "missing_panics_doc" lint.S0AndS02021-08-131-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | > Check `missing_panics_doc` section of Clippy documentation for details; > > https://rust-lang.github.io/rust-clippy/master/index.html#missing_panics_doc This adds the following Clippy configuration to crates; #![deny(clippy::missing_panics_doc)] And adds necessary doc-comments to methods that may panic.
* | Merge remote-tracking branch 'origin/mr/61'Nick Mathewson2021-08-181-0/+1
|\ \
| * | Add the "implicit_clone" lint.S0AndS02021-08-171-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | > Check `implicit_clone` section of Clippy documentation for details; > > https://rust-lang.github.io/rust-clippy/master/index.html#implicit_clone This adds, and addresses, the following Clippy configuration to crates; #![deny(clippy::implicit_clone)] And moves related line within `maint/add_warning.py` file. My intent is to mitigate extra edits after merging, so please let me know if I need to do this last bit differently.
* | | Make MicrodescBuilder implement Debug and CloneNick Mathewson2021-08-171-0/+1
|/ /
* / Note SPEC statuses in tor-netdocNick Mathewson2021-08-162-2/+1
|/
* Use add_warnings.py for clippy::cast_losslessNick Mathewson2021-08-131-1/+1
|
* Add the "cast_lossless" lint.S0AndS02021-08-121-0/+1
| | | | | | | | | | | | > Check `cast_lossless` section of Clippy documentation for details; > > https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless This adds the following Clippy configuration to crates; #![deny(clippy::cast_lossless)] And applies suggested Clippy and `cargo fmt` fixes.
* Fix a few rustdoc link warnings.Nick Mathewson2021-08-121-1/+1
|
* Merge remote-tracking branch 'origin/mr/58'Nick Mathewson2021-08-121-1/+1
|\
| * Sync docs with readmesLennart Kloock2021-08-111-1/+1
| |
* | Add functions to check whether port policies are nonempty.Nick Mathewson2021-08-111-0/+14
|/
* Add unnecessary_wraps to the big warning list.Nick Mathewson2021-08-061-0/+1
|
* Small fixes on top of typo fixesNick Mathewson2021-08-031-1/+1
|
* Fix typos and other spelling mistakesrls2021-07-3112-20/+20
|
* address a bunch of hopefully uncontroversial lintsDaniel Eades2021-07-203-21/+12
|
* derives for TorVersion and AuthKeyIdsEugene Lomov2021-07-182-41/+2
| | | | Closes tpo/core/arti#147
* Fix an unused variable warning when fuzzing tor-netdocNick Mathewson2021-07-021-1/+1
|
* Add clippy warn needless pass by valueYUAN LYU2021-06-213-7/+8
|
* Add clippy warn needless borrowYUAN LYU2021-06-211-0/+1
|
* Fix some warnings about needless & from nightly clippyNick Mathewson2021-06-181-1/+1
|
* Fix new(?) rustdoc warningsNick Mathewson2021-06-162-3/+3
|
* Add noop_method_call warning.Nick Mathewson2021-05-271-0/+1
| | | | | | This would have saved ahf and me a lot of confusion in debugging a situation where we were cloning a reference of a type that didn't implement Clone.
* Use the "typos" tool to fix some spellingNick Mathewson2021-05-264-5/+5
|
* Enable cargo_common_metadata warning.Nick Mathewson2021-05-251-0/+1
|
* Revert change to type of NetParams value.Nick Mathewson2021-05-251-2/+2
| | | | | This truly is an i32, not a strings: it is a specified requirement in parsing consensus documents.
* Use macros and types to improve handling of Netdir parameters.Nick Mathewson2021-05-251-2/+2
| | | | (Squashed from typed-netdir-params)
* Light tweaks to tor-netdoc.Nick Mathewson2021-05-241-2/+8
|
* Fix some rustdoc warningsNick Mathewson2021-05-211-1/+2
|
* Add the "unreachable_pub" lint.Nick Mathewson2021-05-1810-99/+117
| | | | | | This is a somewhat obnoxious change in its scope and requirements, but it makes it easier to understand what the real public and private parts of our APIs are.
* Prefer "relay" over "node" in most circumstances.Nick Mathewson2021-05-181-2/+2
|
* Prefer "relay" over "router" in docs and APIs.Nick Mathewson2021-05-187-109/+107
|
* WIP: more builders.Nick Mathewson2021-05-131-2/+1
|
* Resolve clippy warnings from Rust 1.52.Nick Mathewson2021-05-073-18/+10
| | | | | | | | | | Rust 1.52 just came out, and there are new clippy lints to deal with: * It spots more cases when we could use Option::map * It spots more cases when we could use Iterator::flatten * When we build a struct instance, it wants us to list the fields in the same order that the struct declares them.
* More tests for tor-netdir::weightNick Mathewson2021-05-073-9/+37
|
* Fix documentation warnings.Nick Mathewson2021-05-051-1/+1
|
* Add a consensus builder, for testing.Nick Mathewson2021-05-056-9/+679
|
* Add an authcert builder, for testing.Nick Mathewson2021-05-052-0/+218
|
* Add a microdesc builder, for testing.Nick Mathewson2021-05-053-0/+276
|
* Add trait_duplication_in_bounds warning.Nick Mathewson2021-05-031-0/+1
|
* Add unseparated_literal_suffix lint, and fix it.Nick Mathewson2021-05-031-0/+1
|
* Add a few more clippy warningsNick Mathewson2021-05-031-0/+5
|
* Add some more clippy warnings to our list.Nick Mathewson2021-04-271-1/+6
|