@@ -7,7 +7,7 @@ use std::sync::atomic::AtomicBool;
7
7
/// The error returned by various initialization methods.
8
8
#[ derive( Debug , thiserror:: Error ) ]
9
9
#[ allow( missing_docs) ]
10
- pub enum Error2 {
10
+ pub enum Error {
11
11
#[ error( transparent) ]
12
12
PrepareClone ( #[ from] git:: clone:: prepare:: Error ) ,
13
13
#[ error( transparent) ]
@@ -38,14 +38,14 @@ impl Index {
38
38
///
39
39
///
40
40
/// let index = Index::from_path_or_cloned_with_options(path, git::progress::Discard, &AtomicBool::default(), options)?;
41
- /// # Ok::<(), crates_index_diff::index::init::Error2 >(())
41
+ /// # Ok::<(), crates_index_diff::index::init::Error >(())
42
42
/// ```
43
43
pub fn from_path_or_cloned_with_options (
44
44
path : impl AsRef < Path > ,
45
45
progress : impl git:: Progress ,
46
46
should_interrupt : & AtomicBool ,
47
47
CloneOptions { url } : CloneOptions ,
48
- ) -> Result < Index , Error2 > {
48
+ ) -> Result < Index , Error > {
49
49
let path = path. as_ref ( ) ;
50
50
let mut repo = match git:: open ( path) {
51
51
Ok ( repo) => repo,
@@ -76,7 +76,7 @@ impl Index {
76
76
/// clone of the `crates.io` index.
77
77
/// If the directory does not contain the repository or does not exist, it will be cloned from
78
78
/// the official location automatically (with complete history).
79
- pub fn from_path_or_cloned ( path : impl AsRef < Path > ) -> Result < Index , Error2 > {
79
+ pub fn from_path_or_cloned ( path : impl AsRef < Path > ) -> Result < Index , Error > {
80
80
Index :: from_path_or_cloned_with_options (
81
81
path,
82
82
git:: progress:: Discard ,
0 commit comments