use tuple for actions

This commit is contained in:
yggverse 2024-11-12 18:47:52 +02:00
parent b70a5a7867
commit 61010e0a42
6 changed files with 24 additions and 39 deletions

View file

@ -18,13 +18,9 @@ pub struct Request {
impl Request {
// Construct
pub fn new(
// Actions
browser_action: Rc<BrowserAction>,
tab_action: Rc<TabAction>,
) -> Self {
pub fn new(action: (Rc<BrowserAction>, Rc<TabAction>)) -> Self {
Self {
widget: Rc::new(Widget::new(browser_action, tab_action)),
widget: Rc::new(Widget::new(action)),
}
}