mirror of
https://github.com/YGGverse/Yoda.git
synced 2025-02-10 02:14:13 +00:00
enshort namespace
This commit is contained in:
parent
2a7d7c5c46
commit
08db41b927
@ -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) {}
|
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user