diff --git a/.gitignore b/.gitignore index fedaa2b..93c43d0 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ /target .env +.idea diff --git a/.idea/.gitignore b/.idea/.gitignore deleted file mode 100644 index 5c98b42..0000000 --- a/.idea/.gitignore +++ /dev/null @@ -1,2 +0,0 @@ -# Default ignored files -/workspace.xml \ No newline at end of file diff --git a/.idea/dataSources.local.xml b/.idea/dataSources.local.xml deleted file mode 100644 index ac78098..0000000 --- a/.idea/dataSources.local.xml +++ /dev/null @@ -1,11 +0,0 @@ - - - - - - master_key - jude - - - - \ No newline at end of file diff --git a/.idea/dataSources.xml b/.idea/dataSources.xml deleted file mode 100644 index dec1c89..0000000 --- a/.idea/dataSources.xml +++ /dev/null @@ -1,11 +0,0 @@ - - - - - mysql - true - com.mysql.jdbc.Driver - jdbc:mysql://localhost:3306/soundfx - - - \ No newline at end of file diff --git a/.idea/dictionaries/jude.xml b/.idea/dictionaries/jude.xml deleted file mode 100644 index 864a310..0000000 --- a/.idea/dictionaries/jude.xml +++ /dev/null @@ -1,7 +0,0 @@ - - - - reqwest - - - \ No newline at end of file diff --git a/.idea/inspectionProfiles/Project_Default.xml b/.idea/inspectionProfiles/Project_Default.xml deleted file mode 100644 index 45a9456..0000000 --- a/.idea/inspectionProfiles/Project_Default.xml +++ /dev/null @@ -1,6 +0,0 @@ - - - - \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml deleted file mode 100644 index 28a804d..0000000 --- a/.idea/misc.xml +++ /dev/null @@ -1,6 +0,0 @@ - - - - - \ No newline at end of file diff --git a/.idea/modules.xml b/.idea/modules.xml deleted file mode 100644 index f4844f9..0000000 --- a/.idea/modules.xml +++ /dev/null @@ -1,8 +0,0 @@ - - - - - - - - \ No newline at end of file diff --git a/.idea/soundfx-rs.iml b/.idea/soundfx-rs.iml deleted file mode 100644 index b7b4242..0000000 --- a/.idea/soundfx-rs.iml +++ /dev/null @@ -1,14 +0,0 @@ - - - - - - - - - - - - - - \ No newline at end of file diff --git a/.idea/sqldialects.xml b/.idea/sqldialects.xml deleted file mode 100644 index 56782ca..0000000 --- a/.idea/sqldialects.xml +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml deleted file mode 100644 index 94a25f7..0000000 --- a/.idea/vcs.xml +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/src/utils.rs b/src/utils.rs index 2da303e..ccc7c44 100644 --- a/src/utils.rs +++ b/src/utils.rs @@ -22,13 +22,13 @@ pub async fn play_audio( volume: u8, call_handler: &mut MutexGuard<'_, Call>, db_pool: impl Executor<'_, Database = Database>, - loop_: bool, + r#loop: bool, ) -> Result> { let (track, track_handler) = create_player(sound.playable(db_pool).await?.into()); let _ = track_handler.set_volume(volume as f32 / 100.0); - if loop_ { + if r#loop { let _ = track_handler.enable_loop(); } else { let _ = track_handler.disable_loop();