From 314e36e28b22ef7ad9c941e86bf3082f76e2790a Mon Sep 17 00:00:00 2001 From: Clement Rey Date: Mon, 16 Oct 2023 14:38:28 +0200 Subject: [PATCH] address PR comments --- crates/re_format/src/arrow.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/crates/re_format/src/arrow.rs b/crates/re_format/src/arrow.rs index 463e98dab9d6..2963dc8771c3 100644 --- a/crates/re_format/src/arrow.rs +++ b/crates/re_format/src/arrow.rs @@ -225,11 +225,11 @@ where .map(|(name, data_type)| { Cell::new(format!( "{}\n---\n{}", - name.replace("rerun.archetypes.", "") - .replace("rerun.components.", "") - .replace("rerun.datatypes.", "") - .replace("rerun.controls.", "") - .replace("rerun.", ""), + name.trim_start_matches("rerun.archetypes.") + .trim_start_matches("rerun.components.") + .trim_start_matches("rerun.datatypes.") + .trim_start_matches("rerun.controls.") + .trim_start_matches("rerun."), DisplayDataType(data_type.clone()) )) });