History

replace 'ImpossibleVariantError' with 'std::convert::Infallible'`

Sebastian Thiel committed 6 years ago

Commit c53638c1 parent 8c658da2 files · +2 −15Browse files

Showing the changes to git-commitgraph/src/graph (1 of 2 files). Show all

Unified · Split

git-commitgraph/src/graph/verify.rs+2−3
@@ -1,6 +1,6 @@
11 use crate::{
22 file::{self, commit},
3− graph, Graph, ImpossibleVariantError, GENERATION_NUMBER_MAX,
3+ graph, Graph, GENERATION_NUMBER_MAX,
44 };
55 use git_object::owned;
66 use std::cmp::{max, min};
@@ -27,8 +27,7 @@ pub enum Error<E: std::error::Error + 'static> { · 20 unmodified lines
2727 // `graph::verify::Error::File(file::verify::Error::Processor(...))`, because we are the
2828 // file's processor, and we convert`file::verify::Error::Processor<graph::verify::Error>`
2929 // variants into direct `graph::verify::Error` values.
30− // TODO: Use never type when it becomes available.
31− err: file::verify::Error<ImpossibleVariantError>,
30+ err: file::verify::Error<std::convert::Infallible>,
3231 path: PathBuf,
3332 },
3433 #[error("Commit {id}'s generation should be {expected} but is {actual}")]