better imports

This commit is contained in:
2025-09-13 18:30:19 +03:00
parent 34886e44a6
commit fb6714aeee
4 changed files with 21 additions and 21 deletions
+4 -4
View File
@@ -1,27 +1,27 @@
mod pw;
pub mod settings;
pub use settings::Settings;
use eframe::{CreationContext, Frame, NativeOptions};
use egui::{
Button, CentralPanel, ComboBox, Context, Label, ScrollArea, Separator, Slider, TextEdit, Ui,
Vec2,
};
use egui_material_icons::icons;
use metadata::media_file::MediaFileMetadata;
use rfd::FileDialog;
use rodio::{Decoder, OutputStream, OutputStreamBuilder, Sink};
pub use settings::Settings;
use std::{fs, path::PathBuf};
#[derive(PartialEq)]
#[derive(Default)]
#[derive(PartialEq, Default)]
enum PlayerState {
Playing,
#[default]
Paused,
}
pub struct App {
saved_settings: Settings,
+1 -3
View File
@@ -1,6 +1,4 @@
use std::collections::HashMap;
use std::error::Error;
use std::process::Command;
use std::{collections::HashMap, error::Error, process::Command};
pub struct AudioDevice {
pub nick: String,
+6 -3
View File
@@ -1,7 +1,10 @@
use serde::{Deserialize, Serialize};
use std::fs;
use std::io::{Read, Write};
use std::path::PathBuf;
use std::{
fs,
io::{Read, Write},
path::PathBuf,
};
#[derive(Serialize, Deserialize, Debug, PartialEq)]
pub struct Settings {
+1 -2
View File
@@ -1,7 +1,6 @@
use std::fs;
mod app;
use std::fs;
fn main() -> Result<(), eframe::Error> {
let settings = generate_settings();
app::run(settings)