Skip to content
This repository has been archived by the owner on May 10, 2020. It is now read-only.

Commit

Permalink
chore: fix some warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
steffengy committed Apr 6, 2019
1 parent 972b53c commit 77042cc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions tiberius/src/lib.rs
Expand Up @@ -690,8 +690,8 @@ fn parse_connection_str(connection_str: &str) -> Result<(ConnectParams, ConnectT
// characters, the quotation mark character used to enclose the value must
// be doubled every time it occurs within the value.
value.push(quote_char);
} else if input.trim_left().starts_with(";") {
input = input.trim_left().trim_left_matches(";");
} else if input.trim_start().starts_with(";") {
input = input.trim_start().trim_start_matches(";");
break;
} else if input.is_empty() {
break;
Expand Down
2 changes: 1 addition & 1 deletion tiberius/src/plp.rs
@@ -1,7 +1,7 @@
//! Partially Length-Prefixed types handling

use std::cmp;
use std::io::{self, Cursor, Write};
use std::io::{self, Write};

use byteorder::{LittleEndian, ReadBytesExt, WriteBytesExt};
use futures::{Async, Poll};
Expand Down

0 comments on commit 77042cc

Please sign in to comment.