Skip to content

Commit

Permalink
Fix lint.
Browse files Browse the repository at this point in the history
  • Loading branch information
lseelenbinder committed Sep 17, 2024
1 parent 6e60712 commit 63c4d7e
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions src/backend_s3.rs
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
use bytes::Bytes;
use s3::Bucket;

use crate::async_reader::{AsyncBackend, AsyncPmTilesReader};
use crate::cache::{DirectoryCache, NoCache};
use crate::error::PmtError::{ResponseBodyTooLong, UnexpectedNumberOfBytesReturned};
use crate::PmtResult;
use crate::{
async_reader::{AsyncBackend, AsyncPmTilesReader},
cache::{DirectoryCache, NoCache},
error::PmtError::ResponseBodyTooLong,
PmtResult,
};

impl AsyncPmTilesReader<S3Backend, NoCache> {
/// Creates a new `PMTiles` reader from a bucket and path to the
Expand Down Expand Up @@ -61,7 +63,7 @@ impl AsyncBackend for S3Backend {
if response_bytes.len() > length {
Err(ResponseBodyTooLong(response_bytes.len(), length))
} else {
Ok(response_bytes)
Ok(response_bytes.clone())
}
}
}

0 comments on commit 63c4d7e

Please sign in to comment.