removed unnecessary mutability for pages and tabs

This commit is contained in:
doryan04 2024-03-12 23:54:20 +04:00
parent a9626cda4d
commit 1d62f3810c
2 changed files with 5 additions and 5 deletions

View File

@ -27,7 +27,7 @@ impl Pages {
impl PagesBuilder {
fn append_page_private(
&mut self,
&self,
page_name: &str,
page_title: &str,
content: &impl IsA<Widget>
@ -36,7 +36,7 @@ impl PagesBuilder {
}
pub fn set_transition(
mut self,
self,
type_transition : StackTransitionType,
duration: u32
) -> Self {
@ -47,7 +47,7 @@ impl PagesBuilder {
}
pub fn add_page(
mut self,
self,
page_name: &str,
page_title: &str,
content: &impl IsA<Widget>
@ -57,7 +57,7 @@ impl PagesBuilder {
}
pub fn add_pages(
mut self,
self,
pages: Vec<(&str, &str, &impl IsA<Widget>)>,
) -> Self {
pages.iter()

View File

@ -47,7 +47,7 @@ impl TabsBuilder {
self
}
pub fn build(&mut self, group_name: &str) -> Tabs {
pub fn build(&self, group_name: &str) -> Tabs {
let tabs_wrapper = Notebook::builder()
.group_name(group_name)
.build();