remove extra referencers

This commit is contained in:
yggverse 2024-11-08 05:03:02 +02:00
parent 1e5d5a46cf
commit 6d7277d831
10 changed files with 18 additions and 18 deletions

View File

@ -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(())

View File

@ -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(())

View File

@ -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());
}

View File

@ -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(())

View File

@ -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(())

View File

@ -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(())

View File

@ -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());
}

View File

@ -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());
}

View File

@ -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());
}

View File

@ -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());
}