File tree Expand file tree Collapse file tree 1 file changed +0
-25
lines changed Expand file tree Collapse file tree 1 file changed +0
-25
lines changed Original file line number Diff line number Diff line change @@ -78,31 +78,6 @@ impl Error {
7878 Self :: Reqwest { .. } => None ,
7979 }
8080 }
81-
82- pub ( crate ) fn error ( self , store : & ' static str , path : String ) -> crate :: Error {
83- match self . status ( ) {
84- Some ( StatusCode :: NOT_FOUND ) => crate :: Error :: NotFound {
85- path,
86- source : Box :: new ( self ) ,
87- } ,
88- Some ( StatusCode :: NOT_MODIFIED ) => crate :: Error :: NotModified {
89- path,
90- source : Box :: new ( self ) ,
91- } ,
92- Some ( StatusCode :: PRECONDITION_FAILED ) => crate :: Error :: Precondition {
93- path,
94- source : Box :: new ( self ) ,
95- } ,
96- Some ( StatusCode :: CONFLICT ) => crate :: Error :: AlreadyExists {
97- path,
98- source : Box :: new ( self ) ,
99- } ,
100- _ => crate :: Error :: Generic {
101- store,
102- source : Box :: new ( self ) ,
103- } ,
104- }
105- }
10681}
10782
10883impl From < Error > for std:: io:: Error {
You can’t perform that action at this time.
0 commit comments