kingsword09 commented on code in PR #6314:
URL: https://github.com/apache/opendal/pull/6314#discussion_r2158148943
##########
bindings/python/src/options.rs:
##########
@@ -43,14 +43,24 @@ pub struct ReadOptions {
impl ReadOptions {
pub fn make_range(&self) -> (RangeBound<u64>, RangeBound<u64>) {
- let start_bound = self
- .offset
- .map_or(RangeBound::Unbounded, |s| RangeBound::Included(s as u64));
- let end_bound = self
- .size
- .map_or(RangeBound::Unbounded, |e| RangeBound::Excluded(e as u64));
-
- (start_bound, end_bound)
+ match (self.offset, self.size) {
Review Comment:
done
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]