apply rustfmt

This commit is contained in:
yggverse 2024-09-20 18:02:10 +03:00
parent e6e81e846a
commit f8d938a8af
24 changed files with 253 additions and 611 deletions

View file

@ -1,34 +1,22 @@
#[path = "history/back.rs"] mod back;
#[path = "history/forward.rs"] mod forward;
#[path = "history/back.rs"]
mod back;
#[path = "history/forward.rs"]
mod forward;
use gtk::Box;
use gtk::prelude::BoxExt;
use gtk::Box;
pub fn new() -> Box
{
pub fn new() -> Box {
let history = Box::builder()
// Tuneup
.orientation(
gtk::Orientation::Horizontal
)
.css_classes(
[
"linked" // merge childs
]
)
.orientation(gtk::Orientation::Horizontal)
.css_classes([
"linked", // merge childs
])
.build();
// Compose childs
history.append(
&back::new()
);
history.append(&back::new());
history.append(&forward::new());
history.append(
&forward::new()
);
return history;
}
history
}