Skip to content
This repository was archived by the owner on Oct 18, 2021. It is now read-only.

Commit 42ee692

Browse files
committed
Merge pull request #128 from DenisKolodin/new-deps
Fixes for RFC 1214
2 parents e76ffcb + c4a37f4 commit 42ee692

File tree

6 files changed

+43
-43
lines changed

6 files changed

+43
-43
lines changed

Cargo.lock

Lines changed: 37 additions & 37 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tests/client/connstring.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ fn read_pref_tags() {
173173
let options = connstr.options.unwrap();
174174
assert_eq!(options.read_pref_tags.len(), prefs.len());
175175

176-
for i in (0..prefs.len()-1) {
176+
for i in 0..prefs.len()-1 {
177177
assert_eq!(prefs[i], options.read_pref_tags[i]);
178178
}
179179
}

tests/json/crud/reader.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ fn get_tests(object: &Object) -> Result<Vec<Test>, String> {
118118
Ok(tests)
119119
}
120120

121-
pub trait SuiteContainer {
121+
pub trait SuiteContainer: Sized {
122122
fn from_file(path: &str) -> Result<Self, String>;
123123
fn get_suite(&self) -> Result<Suite, String>;
124124
}

tests/json/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ pub mod server_selection;
88

99
use rustc_serialize::json::Object;
1010

11-
pub trait FromJson {
11+
pub trait FromJson: Sized {
1212
fn from_json(object: &Object) -> Self;
1313
}
1414

15-
pub trait FromJsonResult {
15+
pub trait FromJsonResult: Sized {
1616
fn from_json(object: &Object) -> Result<Self, String>;
1717
}

tests/json/sdam/reader.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ fn get_phases(object: &Object) -> Result<Vec<Phase>, String> {
5151
Ok(phases)
5252
}
5353

54-
pub trait SuiteContainer {
54+
pub trait SuiteContainer: Sized {
5555
fn from_file(path: &str) -> Result<Self, String>;
5656
fn get_suite(&self) -> Result<Suite, String>;
5757
}

tests/json/server_selection/reader.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ fn get_server_array(arr: &Vec<Json>) -> Result<Vec<Server>, String> {
3535
Ok(servers)
3636
}
3737

38-
pub trait SuiteContainer {
38+
pub trait SuiteContainer: Sized {
3939
fn from_file(path: &str) -> Result<Self, String>;
4040
fn get_suite(&self) -> Result<Suite, String>;
4141
}

0 commit comments

Comments
 (0)