Browse Source

remove extra referencers

master
yggverse 4 weeks 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 {
// Tools // Tools
fn migrate(tx: &Transaction) -> Result<(), String> { fn migrate(tx: &Transaction) -> Result<(), String> {
// Migrate self components // Migrate self components
if let Err(e) = Database::init(&tx) { if let Err(e) = Database::init(tx) {
return Err(e.to_string()); return Err(e.to_string());
} }
// Delegate migration to childs // Delegate migration to childs
browser::migrate(&tx)?; browser::migrate(tx)?;
// Success // Success
Ok(()) Ok(())

8
src/app/browser.rs

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

2
src/app/browser/widget.rs

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

4
src/app/browser/window.rs

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

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

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

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

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

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

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

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

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

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

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

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

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

Loading…
Cancel
Save