enshort namespace

This commit is contained in:
yggverse 2024-09-22 13:17:18 +03:00
parent 2a7d7c5c46
commit 08db41b927
2 changed files with 5 additions and 5 deletions

View File

@ -1,10 +1,10 @@
use std::sync::Arc;
pub struct Database {
pub struct Browser {
pub connection: Arc<sqlite::Connection>,
}
impl Database {
impl Browser {
fn init(&self) {}
fn save(&self) {}
fn restore(&self) {}

View File

@ -1,4 +1,4 @@
mod database;
mod db;
mod header;
mod main;
@ -11,7 +11,7 @@ use gtk::{
};
pub struct Browser {
database: database::Database,
db: db::Browser,
pub widget: Arc<gtk::ApplicationWindow>,
pub header: Arc<header::Header>,
pub main: Arc<main::Main>,
@ -64,7 +64,7 @@ pub fn new(
// Done
Browser {
database: database::Database { connection },
db: db::Browser { connection },
widget,
header,
main,