Skip to content

Commit 9551cd3

Browse files
committed
Apply some clippy suggestions
1 parent 0f36ef0 commit 9551cd3

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

src/schema.rs

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -58,10 +58,9 @@ pub fn infer_schema(conn: &Connection, table: &str) -> Result<Vec<Column>> {
5858
} else {
5959
Repetition::OPTIONAL
6060
};
61-
let encoding = match name.as_str() {
62-
// TODO: Try to figure out when to do DELTA_BINARY_PACKED and when to leave it as RLE
63-
_ => None,
64-
};
61+
// TODO: Try to figure out when to do DELTA_BINARY_PACKED and when
62+
// to leave it as RLE
63+
let encoding = None;
6564
let query = format!("SELECT {} FROM {}", name, table);
6665
let info = Column {
6766
name,
@@ -94,7 +93,7 @@ impl fmt::Display for Column {
9493
"{:20} {} {:20}{}{}{} {}",
9594
self.name,
9695
self.repetition,
97-
self.physical_type.to_string(),
96+
self.physical_type,
9897
if self.length == 0 {
9998
"".to_string()
10099
} else {

0 commit comments

Comments
 (0)