remove extra clone, use references

This commit is contained in:
yggverse 2025-01-14 05:03:17 +02:00
parent 879fe7a6f6
commit 2962049926
3 changed files with 5 additions and 11 deletions

View file

@ -66,7 +66,7 @@ impl Input {
));
}
pub fn set_new_titan(&self, action: Rc<TabAction>, base: Uri, title: Option<&str>) {
pub fn set_new_titan(&self, action: &Rc<TabAction>, base: &Uri, title: Option<&str>) {
self.widget
.update(Some(&Titan::build(action, base, title).widget.g_box));
}