Simplify some pattern-matches (#16402)
When those match an exact combinator on Option / Result. Tool-aided by [comby-rust](https://github.com/huitseeker/comby-rust).
This commit is contained in:
committed by
GitHub
parent
bb9d2fd07a
commit
b08cff9e77
@@ -611,10 +611,7 @@ where
|
||||
_ => return Err(err),
|
||||
},
|
||||
}
|
||||
match deserialize_bincode_cell_data(row_data, table, key) {
|
||||
Ok(result) => Ok(CellData::Bincode(result)),
|
||||
Err(err) => Err(err),
|
||||
}
|
||||
deserialize_bincode_cell_data(row_data, table, key).map(CellData::Bincode)
|
||||
}
|
||||
|
||||
pub(crate) fn deserialize_protobuf_cell_data<T>(
|
||||
|
Reference in New Issue
Block a user