Skip to content

Commit 1882d87

Browse files
committed
Remove unneccesary None qualification
1 parent a46c524 commit 1882d87

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

src/lib.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,7 @@ impl InnerConnection {
343343
options.push(("user".into_string(), user.user.clone()));
344344
match database {
345345
Some(database) => options.push(("database".into_string(), database)),
346-
Option::None => {}
346+
None => {}
347347
}
348348

349349
try!(conn.write_messages(&[StartupMessage {
@@ -1363,7 +1363,7 @@ impl<'stmt> Iterator<Row<'stmt>> for Rows<'stmt> {
13631363
fn size_hint(&self) -> (uint, Option<uint>) {
13641364
let lower = self.data.len();
13651365
let upper = if self.more_rows {
1366-
Option::None
1366+
None
13671367
} else {
13681368
Some(lower)
13691369
};
@@ -1436,7 +1436,7 @@ impl RowIndex for uint {
14361436
#[inline]
14371437
fn idx(&self, stmt: &Statement) -> Option<uint> {
14381438
if *self > stmt.result_desc.len() {
1439-
Option::None
1439+
None
14401440
} else {
14411441
Some(*self)
14421442
}
@@ -1562,7 +1562,7 @@ impl<'a> CopyInStatement<'a> {
15621562
match (row.next(), types.next()) {
15631563
(Some(val), Some(ty)) => {
15641564
match val.to_sql(ty) {
1565-
Ok(Option::None) => {
1565+
Ok(None) => {
15661566
let _ = buf.write_be_i32(-1);
15671567
}
15681568
Ok(Some(val)) => {
@@ -1579,14 +1579,14 @@ impl<'a> CopyInStatement<'a> {
15791579
}
15801580
}
15811581
}
1582-
(Some(_), Option::None) | (Option::None, Some(_)) => {
1582+
(Some(_), None) | (None, Some(_)) => {
15831583
try_desync!(conn, conn.stream.write_message(
15841584
&CopyFail {
15851585
message: "Invalid column count",
15861586
}));
15871587
break 'l;
15881588
}
1589-
(Option::None, Option::None) => break
1589+
(None, None) => break
15901590
}
15911591
}
15921592

0 commit comments

Comments
 (0)