From fca080253f67a1bed286b0044ab128de3c1de7b5 Mon Sep 17 00:00:00 2001 From: jude Date: Tue, 22 Aug 2023 17:44:00 +0100 Subject: [PATCH] Rename a variable. Remove .idea --- .gitignore | 1 + .idea/.gitignore | 2 -- .idea/dataSources.local.xml | 11 ----------- .idea/dataSources.xml | 11 ----------- .idea/dictionaries/jude.xml | 7 ------- .idea/inspectionProfiles/Project_Default.xml | 6 ------ .idea/misc.xml | 6 ------ .idea/modules.xml | 8 -------- .idea/soundfx-rs.iml | 14 -------------- .idea/sqldialects.xml | 6 ------ .idea/vcs.xml | 6 ------ src/utils.rs | 4 ++-- 12 files changed, 3 insertions(+), 79 deletions(-) delete mode 100644 .idea/.gitignore delete mode 100644 .idea/dataSources.local.xml delete mode 100644 .idea/dataSources.xml delete mode 100644 .idea/dictionaries/jude.xml delete mode 100644 .idea/inspectionProfiles/Project_Default.xml delete mode 100644 .idea/misc.xml delete mode 100644 .idea/modules.xml delete mode 100644 .idea/soundfx-rs.iml delete mode 100644 .idea/sqldialects.xml delete mode 100644 .idea/vcs.xml 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();