Eliminate some compiler warnings (#1468)

- Unnecessary parentheses
- Deprecated `description()` method
This commit is contained in:
Jason Gedge
2020-03-08 15:19:07 -04:00
committed by GitHub
parent e440d8c939
commit 755d0e648b
3 changed files with 5 additions and 6 deletions

View File

@ -301,10 +301,10 @@ struct DebugEntry<'a> {
impl<'a> PrettyDebug for DebugEntry<'a> {
/// Prepare debug entries for pretty-printing
fn pretty(&self) -> DebugDocBuilder {
(b::key(match self.key {
b::key(match self.key {
Column::String(string) => string.clone(),
Column::Value => "<value>".to_string(),
}) + b::delimit("(", self.value.pretty(), ")").into_kind())
}) + b::delimit("(", self.value.pretty(), ")").into_kind()
}
}