Skip to content

Commit 7216d16

Browse files
committed
fix(object_store): remove read code per clippy
1 parent e796cf1 commit 7216d16

File tree

1 file changed

+0
-25
lines changed

1 file changed

+0
-25
lines changed

object_store/src/client/retry.rs

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff 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

10883
impl From<Error> for std::io::Error {

0 commit comments

Comments
 (0)