fix by cargo
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user