| Commit message (Collapse) | Author | Age | Files | Lines |
| | |
|
| | |
|
| |
|
|
|
|
|
|
|
| |
This commit adds the ParseError::new() method, which allows external
APIs to construct a ParseError, which is currently not possible due to
non-exhaustiveness, despite the member fields being public.
It is required for external applications using lower-level but public
parse2 APIs, such as ItemStream's.
|
| |
|
|
| |
Typos found with codespell
|
| |
|
|
|
| |
We're going to want this for cases where the hash computation
machinery didn't DTRT.
|
| |\
| |
| |
| |
| | |
Implement EncodedAuthCert and use it in poc for votes
See merge request tpo/core/arti!3592
|
| | | |
|
| |/
|
|
|
|
|
| |
This commit changes `ErrorProblem::Other` to
`ErrorProblem::OtherBadDocument` while adding two new variants:
* `ErrorProblem::Internal`
* `ErrorProblem::BadApiUsage`
|
| | |
|
| |
|
|
|
|
|
|
|
|
| |
1.85.1 rejects this, because it doesn't extend the lifetime of the
`format_args!`. 1.90 is fine with it.
I want to keep `format!` not `String::new()` so that it's easy to
change back. That means a clippy allow. Getting that to apply to the
code inside the derive is tricky, so I've enabled it for the whole
module. (IMO this clippy lint is pretty annoying anyway.)
|
| | |
|
| |
|
|
| |
We'll want to general way to find the error problem column.
|
| |
|
|
|
|
|
| |
Provide facilities in ArgumnetStream for determining the column, and
add the field to all the error types up to and including ErrorProblem.
The value still needs to be propagated to ParseError, and printed there.
|
| |
|
|
|
| |
This will allow us to (1) move field name handling out of the argument
parser method, and also (2) add columns more easily.
|
| |
|
|
|
|
|
| |
We're about to have some functions return ArgumentError and some
ErrorProblem. We don't want to provide a conversion directly between
these types, so instead introduce a new type that will be convertible
to either.
|
| |
|
|
| |
`problem` is the `#[source]`.
|
| |
|
|
| |
`#[from]` is not `#[source]`. We need to print the inner error.
|
|
|
This isn't used anywhere yet. We're going to demonstrate it, and test
the demo, in a moment.
|