Formatting

This commit is contained in:
bungoboingo 2023-01-09 10:19:12 -08:00
parent ec41918ec4
commit 3e5d34f25f
4 changed files with 81 additions and 25 deletions

View file

@ -29,8 +29,12 @@ impl<A: Application> State<A>
where
<A::Renderer as crate::Renderer>::Theme: application::StyleSheet,
{
/// Creates a new [`State`] for the provided [`Application`] and window.
pub fn new(application: &A, window_id: window::Id, window: &Window) -> Self {
/// Creates a new [`State`] for the provided [`Application`]'s window.
pub fn new(
application: &A,
window_id: window::Id,
window: &Window,
) -> Self {
let title = application.title(window_id);
let scale_factor = application.scale_factor();
let theme = application.theme();
@ -191,7 +195,6 @@ where
if self.title != new_title {
window.set_title(&new_title);
self.title = new_title;
}