radicle-heartwood-lfs/radicle-cli
Sebastian Martinez 1f36879aa2
cob: improve Comment generics
`Infallible` is a more appropriate type in comparsion to `()` for
comments that do not require a `CodeLocation`.

That is because if the type for `location` is `Option<()>`, this means
that `Some(())` can be constructed, however, we never intend to
construct that variant. On the other hand, `Infallible` can never be
constructed, and so, only `None` can be used.

This requires updates to some functions to use the generic `T` and
also handle the different kinds of `Comment`s -- `Infallible` and
`CodeLocation`.

X-Co-Authored-By: Fintan Halpenny <fintan.halpenny@gmail.com>
2023-12-22 14:09:02 +01:00
..
examples cli: Support colors in git helper output 2023-12-22 12:15:34 +01:00
src cob: improve Comment generics 2023-12-22 14:09:02 +01:00
tests node: Make inventory announcements more robust 2023-12-20 15:44:02 +01:00
Cargo.toml git: update git2-0.18.1 2023-12-04 11:11:36 +00:00