From 28a91fba1f3ef749ac75989b71c6f69e06d04b82 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20R=C3=B6ssler?= Date: Wed, 9 Feb 2022 13:26:10 +0100 Subject: [PATCH] rename add_size to add --- egui_extras/src/grid.rs | 4 ++-- egui_extras/src/sizing.rs | 2 +- egui_extras/src/table.rs | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/egui_extras/src/grid.rs b/egui_extras/src/grid.rs index 64382889..2744aae2 100644 --- a/egui_extras/src/grid.rs +++ b/egui_extras/src/grid.rs @@ -31,14 +31,14 @@ impl<'a> GridBuilder<'a> { /// Add size hint for column/row pub fn size(mut self, size: Size) -> Self { - self.sizing.add_size(size); + self.sizing.add(size); self } /// Add size hint for columns/rows [count] times pub fn sizes(mut self, size: Size, count: usize) -> Self { for _ in 0..count { - self.sizing.add_size(size); + self.sizing.add(size); } self } diff --git a/egui_extras/src/sizing.rs b/egui_extras/src/sizing.rs index 6d8c70ce..93d2d2bf 100644 --- a/egui_extras/src/sizing.rs +++ b/egui_extras/src/sizing.rs @@ -27,7 +27,7 @@ impl Sizing { Self { sizes: vec![] } } - pub fn add_size(&mut self, size: Size) { + pub fn add(&mut self, size: Size) { self.sizes.push(size); } diff --git a/egui_extras/src/table.rs b/egui_extras/src/table.rs index eb9d0612..3a8d5c40 100644 --- a/egui_extras/src/table.rs +++ b/egui_extras/src/table.rs @@ -46,14 +46,14 @@ impl<'a> TableBuilder<'a> { /// Add size hint for column pub fn column(mut self, width: Size) -> Self { - self.sizing.add_size(width); + self.sizing.add(width); self } /// Add size hint for column [count] times pub fn columns(mut self, size: Size, count: usize) -> Self { for _ in 0..count { - self.sizing.add_size(size); + self.sizing.add(size); } self }