Fix clippy warnings (#4088)

* Fix clippy warnings

* Fix clippy warnings
This commit is contained in:
JT
2021-10-22 06:57:51 +13:00
committed by GitHub
parent 07e05ef183
commit ab2d2db987
3 changed files with 16 additions and 21 deletions

View File

@ -36,7 +36,7 @@ pub fn view_text_value(value: &Value) {
let config = nu_data::config::config(Tag::unknown())
.ok()
.and_then(|config| config.get("textview").map(Config::from))
.unwrap_or_else(Config::default);
.unwrap_or_default();
if let UntaggedValue::Primitive(Primitive::String(ref s)) = &value.value {
let mut printer = bat::PrettyPrinter::new();