Browse Source

remove extra referencers

master
yggverse 1 month ago
parent
commit
6d7277d831
  1. 4
      src/app.rs
  2. 8
      src/app/browser.rs
  3. 2
      src/app/browser/widget.rs
  4. 4
      src/app/browser/window.rs
  5. 4
      src/app/browser/window/tab.rs
  6. 6
      src/app/browser/window/tab/item.rs
  7. 2
      src/app/browser/window/tab/item/page/meta.rs
  8. 2
      src/app/browser/window/tab/item/page/navigation.rs
  9. 2
      src/app/browser/window/tab/item/page/navigation/request/widget.rs
  10. 2
      src/app/browser/window/tab/item/widget.rs

4
src/app.rs

@ -276,12 +276,12 @@ impl App { @@ -276,12 +276,12 @@ impl App {
// Tools
fn migrate(tx: &Transaction) -> Result<(), String> {
// Migrate self components
if let Err(e) = Database::init(&tx) {
if let Err(e) = Database::init(tx) {
return Err(e.to_string());
}
// Delegate migration to childs
browser::migrate(&tx)?;
browser::migrate(tx)?;
// Success
Ok(())

8
src/app/browser.rs

@ -259,15 +259,15 @@ impl Browser { @@ -259,15 +259,15 @@ impl Browser {
// Tools
pub fn migrate(tx: &Transaction) -> Result<(), String> {
// Migrate self components
if let Err(e) = Database::init(&tx) {
if let Err(e) = Database::init(tx) {
return Err(e.to_string());
}
// Delegate migration to childs
/* @TODO
header::migrate(&tx)?; */
window::migrate(&tx)?;
widget::migrate(&tx)?;
header::migrate(tx)?; */
window::migrate(tx)?;
widget::migrate(tx)?;
// Success
Ok(())

2
src/app/browser/widget.rs

@ -105,7 +105,7 @@ impl Widget { @@ -105,7 +105,7 @@ impl Widget {
// Tools
pub fn migrate(tx: &Transaction) -> Result<(), String> {
// Migrate self components
if let Err(e) = Database::init(&tx) {
if let Err(e) = Database::init(tx) {
return Err(e.to_string());
}

4
src/app/browser/window.rs

@ -180,12 +180,12 @@ impl Window { @@ -180,12 +180,12 @@ impl Window {
// Tools
pub fn migrate(tx: &Transaction) -> Result<(), String> {
// Migrate self components
if let Err(e) = Database::init(&tx) {
if let Err(e) = Database::init(tx) {
return Err(e.to_string());
}
// Delegate migration to childs
tab::migrate(&tx)?;
tab::migrate(tx)?;
// Success
Ok(())

4
src/app/browser/window/tab.rs

@ -401,12 +401,12 @@ impl Tab { @@ -401,12 +401,12 @@ impl Tab {
// Tools
pub fn migrate(tx: &Transaction) -> Result<(), String> {
// Migrate self components
if let Err(e) = Database::init(&tx) {
if let Err(e) = Database::init(tx) {
return Err(e.to_string());
}
// Delegate migration to childs
item::migrate(&tx)?;
item::migrate(tx)?;
// Success
Ok(())

6
src/app/browser/window/tab/item.rs

@ -224,13 +224,13 @@ impl Item { @@ -224,13 +224,13 @@ impl Item {
// Tools
pub fn migrate(tx: &Transaction) -> Result<(), String> {
// Migrate self components
if let Err(e) = Database::init(&tx) {
if let Err(e) = Database::init(tx) {
return Err(e.to_string());
}
// Delegate migration to childs
page::migrate(&tx)?;
widget::migrate(&tx)?;
page::migrate(tx)?;
widget::migrate(tx)?;
// Success
Ok(())

2
src/app/browser/window/tab/item/page/meta.rs

@ -185,7 +185,7 @@ impl Meta { @@ -185,7 +185,7 @@ impl Meta {
// Tools
pub fn migrate(tx: &Transaction) -> Result<(), String> {
// Migrate self components
if let Err(e) = Database::init(&tx) {
if let Err(e) = Database::init(tx) {
return Err(e.to_string());
}

2
src/app/browser/window/tab/item/page/navigation.rs

@ -174,7 +174,7 @@ impl Navigation { @@ -174,7 +174,7 @@ impl Navigation {
// Tools
pub fn migrate(tx: &Transaction) -> Result<(), String> {
// Migrate self components
if let Err(e) = Database::init(&tx) {
if let Err(e) = Database::init(tx) {
return Err(e.to_string());
}

2
src/app/browser/window/tab/item/page/navigation/request/widget.rs

@ -219,7 +219,7 @@ impl Widget { @@ -219,7 +219,7 @@ impl Widget {
// Tools
pub fn migrate(tx: &Transaction) -> Result<(), String> {
// Migrate self components
if let Err(e) = Database::init(&tx) {
if let Err(e) = Database::init(tx) {
return Err(e.to_string());
}

2
src/app/browser/window/tab/item/widget.rs

@ -138,7 +138,7 @@ impl Widget { @@ -138,7 +138,7 @@ impl Widget {
// Tools
pub fn migrate(tx: &Transaction) -> Result<(), String> {
// Migrate self components
if let Err(e) = Database::init(&tx) {
if let Err(e) = Database::init(tx) {
return Err(e.to_string());
}

Loading…
Cancel
Save