From dbf64e8b7fd9a347837deba144dbe90f9e422da9 Mon Sep 17 00:00:00 2001 From: TheOddGarlic Date: Sun, 22 May 2022 13:53:16 +0300 Subject: [PATCH] trait IntoPadded -> trait Padded I have no idea what was going through my mind while naming this. --- src/lib.rs | 2 +- src/widget/padding.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index 8cd04b2..5981694 100755 --- a/src/lib.rs +++ b/src/lib.rs @@ -24,7 +24,7 @@ pub mod prelude { pub use crate::event::window::Event as WindowEvent; pub use crate::platform::Platform; pub use crate::widget::Column; - pub use crate::widget::IntoPadded; + pub use crate::widget::Padded; pub use crate::widget::Label; pub use crate::widget::Row; pub use crate::widget::Padding; diff --git a/src/widget/padding.rs b/src/widget/padding.rs index 168d788..db3a1fb 100755 --- a/src/widget/padding.rs +++ b/src/widget/padding.rs @@ -52,7 +52,7 @@ impl Padding { } } -pub trait IntoPadded { +pub trait Padded { fn padding(self, left: u32, right: u32, top: u32, bottom: u32) -> Padding; fn padding_x(self, left: u32, right: u32) -> Padding; fn padding_y(self, top: u32, bottom: u32) -> Padding; @@ -63,7 +63,7 @@ pub trait IntoPadded { fn padding_all(self, padding: u32) -> Padding; } -impl IntoPadded for W { +impl Padded for W { fn padding(self, left: u32, right: u32, top: u32, bottom: u32) -> Padding { Padding::new(left, right, top, bottom, self) }