fix by cargo

This commit is contained in:
2025-07-07 21:30:46 +02:00
parent 8a462a899d
commit 8d8f98f73f
3 changed files with 3 additions and 8 deletions

View File

@@ -1,11 +1,10 @@
mod polygon_draw;
use polygon_draw::{Polygon, PolygonFrame};
use polygon_draw::Polygon;
mod music;
use music::Music;
mod utils;
use utils::string_to_color;
use std::fs;
@@ -18,7 +17,6 @@ use iced::{
},
};
use serde::{Deserialize, Serialize};
use std::f32::consts::PI;
use std::time::Instant;

View File

@@ -3,12 +3,11 @@ use crate::{polygon_draw::*, utils::string_to_color};
use serde::{Deserialize, Serialize};
use kira::{
AudioManager, AudioManagerSettings, DefaultBackend, sound::static_sound::StaticSoundData,
AudioManager, sound::static_sound::StaticSoundData,
};
use std::f32::consts::PI;
use std::time::Duration;
use std::time::Instant;
#[derive(Serialize, Deserialize)]
pub struct Music {

View File

@@ -1,8 +1,6 @@
use crate::Polygon;
use iced::Color;
use kira::{
AudioManager, AudioManagerSettings, DefaultBackend, sound::static_sound::StaticSoundData,
};
use kira::sound::static_sound::StaticSoundData;
pub fn string_to_color<S: AsRef<str>>(s: S) -> Color {
match s.as_ref() {
"Green" => Color::from_rgb(0.0, 1.0, 0.0),