Skip to content

Commit 5c428a5

Browse files
committed
Some whitespace fixes
1 parent 37aa822 commit 5c428a5

File tree

4 files changed

+4
-8
lines changed

4 files changed

+4
-8
lines changed

tests/modules/bson.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@ fn to_json() {
66
doc.insert("first".to_owned(), Bson::I32(1));
77
doc.insert("second".to_owned(), Bson::String("foo".to_owned()));
88
doc.insert("alphanumeric".to_owned(), Bson::String("bar".to_owned()));
9-
let data = Bson::Document(doc).to_json();
9+
let data = Bson::Document(doc).to_json();
1010

1111
assert!(data.is_object());
1212
let obj = data.as_object().unwrap();
13-
13+
1414
let first = obj.get("first").unwrap();
1515
assert!(first.is_number());
1616
assert_eq!(first.as_i64().unwrap(), 1);
@@ -22,5 +22,4 @@ fn to_json() {
2222
let alphanumeric = obj.get("alphanumeric").unwrap();
2323
assert!(alphanumeric.is_string());
2424
assert_eq!(alphanumeric.as_string().unwrap(), "bar");
25-
2625
}

tests/modules/encoder.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ fn test_encode_array() {
4646

4747
assert_eq!(&buf[..], &dst[..]);
4848
}
49+
4950
#[test]
5051
fn test_encode_utc_date_time() {
5152
let src = UTC.timestamp(1286705410, 0);

tests/modules/macros.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,9 @@ fn recursive_macro() {
2828
// Inner Doc 1
2929
match doc.get("b") {
3030
Some(&Bson::Document(ref doc)) => {
31-
3231
// Inner doc 2
3332
match doc.get("bar") {
3433
Some(&Bson::Document(ref inner_doc)) => {
35-
3634
// Inner array
3735
match inner_doc.get("harbor") {
3836
Some(&Bson::Array(ref arr)) => {
@@ -85,7 +83,6 @@ fn recursive_macro() {
8583
// Nested document
8684
match arr[0] {
8785
Bson::Document(ref doc) => {
88-
8986
// String
9087
match doc.get("apple") {
9188
Some(&Bson::String(ref s)) => assert_eq!("ripe", s),
@@ -101,7 +98,6 @@ fn recursive_macro() {
10198
// Single-item document
10299
match doc.get("e") {
103100
Some(&Bson::Document(ref bdoc)) => {
104-
105101
// String
106102
match bdoc.get("single") {
107103
Some(&Bson::String(ref s)) => assert_eq!("test", s),

tests/modules/ordered.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ fn remove() {
3030
let expected_keys = vec!(
3131
"first",
3232
"alphanumeric",
33-
);
33+
);
3434

3535
let keys: Vec<_> = doc.iter().map(|(key, _)| key.to_owned()).collect();
3636
assert_eq!(expected_keys, keys);

0 commit comments

Comments
 (0)