moving song related stuff to it's own mod

Gonna try to organize pieces better, so this is step one.
This commit is contained in:
Chris Cochrun 2023-09-24 07:05:25 -05:00
parent a21190e58b
commit 0d2de5e252
6 changed files with 8 additions and 5 deletions

View file

@ -10,7 +10,8 @@ mod service_thing;
pub mod settings;
pub mod slide_model;
mod slide_obj;
pub mod song_model;
pub mod songs;
pub mod video_model;
pub mod ytdl;
pub mod utils;
// mod video_thumbnail;

View file

@ -1 +0,0 @@

2
src/rust/songs/mod.rs Normal file
View file

@ -0,0 +1,2 @@
pub mod song_editor;
pub mod song_model;

View file

@ -0,0 +1 @@
mod song_editor;

View file

@ -1,8 +1,8 @@
#[cxx_qt::bridge]
mod song_model {
pub mod song_model {
use crate::models::*;
use crate::schema::songs::dsl::*;
use crate::song_model::song_model::Song;
use crate::songs::song_model::song_model::Song;
use diesel::sqlite::SqliteConnection;
use diesel::{delete, insert_into, prelude::*, update};
use std::collections::HashMap;