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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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