Skip to content

Commit 769101b

Browse files
committed
Fmt
Signed-off-by: Ana Hobden <operator@hoverbear.org>
1 parent 797c8b1 commit 769101b

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

src/lib.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -591,7 +591,7 @@ pub trait KeyRange: Sized {
591591
/// Ranges used in scanning TiKV have a particularity to them.
592592
///
593593
/// The **start** of a scan is inclusive, unless appended with an '\0', then it is exclusive.
594-
///
594+
///
595595
/// The **end** of a scan is exclusive, unless appended with an '\0', then it is inclusive.
596596
///
597597
/// ```rust
@@ -627,15 +627,15 @@ fn range_to_keys(range: (Bound<Key>, Bound<Key>)) -> Result<(Key, Option<Key>)>
627627
let mut buf = b"\0".to_vec();
628628
buf.append(&mut v.0);
629629
Key(buf)
630-
},
630+
}
631631
Bound::Unbounded => Err(Error::invalid_key_range())?,
632632
};
633633
let end = match range.1 {
634634
Bound::Included(mut v) => {
635635
let mut buf = b"\0".to_vec();
636636
v.0.append(&mut buf);
637637
Some(v)
638-
},
638+
}
639639
Bound::Excluded(v) => Some(v),
640640
Bound::Unbounded => None,
641641
};

src/rpc/tikv/client.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -556,9 +556,7 @@ impl KvClient {
556556
start_key
557557
.map(|k| req.set_start_key(k.into_inner()))
558558
.unwrap();
559-
end_key
560-
.map(|k| req.set_end_key(k.into_inner()))
561-
.unwrap();
559+
end_key.map(|k| req.set_end_key(k.into_inner())).unwrap();
562560
req.set_limit(limit);
563561
req.set_key_only(key_only);
564562

0 commit comments

Comments
 (0)