Skip to content

Commit

Permalink
fix: make clippy happy again
Browse files Browse the repository at this point in the history
Signed-off-by: yihong0618 <[email protected]>
  • Loading branch information
yihong0618 committed Jan 17, 2025
1 parent 58586cd commit db8af8e
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion core/src/services/onedrive/writer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ impl OneDriveWriter {
}

async fn create_upload_session(&self) -> Result<OneDriveUploadSessionCreationResponseBody> {
let file_name_from_path = self.path.split('/').last().ok_or_else(|| {
let file_name_from_path = self.path.split('/').next_back().ok_or_else(|| {
Error::new(
ErrorKind::Unexpected,
"connection string must have AccountName",
Expand Down
2 changes: 1 addition & 1 deletion core/src/services/vercel_blob/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ struct VercelBlobErrorDetail {

/// Parse error response into Error.
pub(super) fn parse_error(resp: Response<Buffer>) -> Error {
let (parts, mut body) = resp.into_parts();
let (parts, body) = resp.into_parts();
let bs = body.to_bytes();

let (kind, retryable) = match parts.status.as_u16() {
Expand Down
1 change: 0 additions & 1 deletion core/src/services/webdav/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
// specific language governing permissions and limitations
// under the License.

use bytes::Buf;
use http::Response;
use http::StatusCode;

Expand Down

0 comments on commit db8af8e

Please sign in to comment.