From 105069302b57c8fe7cfa99a034f3ad96195a5469 Mon Sep 17 00:00:00 2001 From: Aaqa Ishtyaq Date: Thu, 2 Feb 2023 20:04:15 +0530 Subject: chore(tvix/eval): clippy warn is length zero This CL address clippy warning about finding the zero length of something using `is_empty()` instead of `len() == 0`. Change-Id: I2b36c7c7b65b733609fc0dcd33be06f9d772bc9b Signed-off-by: Aaqa Ishtyaq Reviewed-on: https://cl.tvl.fyi/c/depot/+/8029 Tested-by: BuildkiteCI Reviewed-by: tazjin --- tvix/eval/src/value/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tvix/eval/src') diff --git a/tvix/eval/src/value/mod.rs b/tvix/eval/src/value/mod.rs index e1afe328ddb2..8b0b75e8668a 100644 --- a/tvix/eval/src/value/mod.rs +++ b/tvix/eval/src/value/mod.rs @@ -553,7 +553,7 @@ fn total_fmt_float(num: f64, mut f: F) -> std::fmt::Result { } // if we modified the scientific notation, flip the reference - if new_s.len() != 0 { + if !new_s.is_empty() { s = &mut new_s } } -- cgit 1.4.1