File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -10,13 +10,15 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1010
1111### Changed
1212- Updated ` wgpu ` to ` 0.17 ` . [ #2065 ] ( https://github.com/iced-rs/iced/pull/2065 )
13+ - Changed ` Button::style ` to take an ` impl Into<...> ` for consistency. [ #2046 ] ( https://github.com/iced-rs/iced/pull/2046 )
1314
1415### Fixed
1516- Missing ` width ` attribute in ` styling ` example. [ #2062 ] ( https://github.com/iced-rs/iced/pull/2062 )
1617
1718Many thanks to...
1819
1920- @akshayr-mecha
21+ - @dtzxporter
2022
2123## [ 0.10.0] - 2023-07-28
2224### Added
Original file line number Diff line number Diff line change @@ -119,9 +119,9 @@ where
119119 /// Sets the style variant of this [`Button`].
120120 pub fn style (
121121 mut self ,
122- style : < Renderer :: Theme as StyleSheet >:: Style ,
122+ style : impl Into < < Renderer :: Theme as StyleSheet >:: Style > ,
123123 ) -> Self {
124- self . style = style;
124+ self . style = style. into ( ) ;
125125 self
126126 }
127127}
You can’t perform that action at this time.
0 commit comments