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()) )) });