aboutsummaryrefslogtreecommitdiff
path: root/src/app/utils.rs
diff options
context:
space:
mode:
authorJoris2022-02-26 18:57:55 +0100
committerJoris2022-02-26 18:57:55 +0100
commitf9f49285c5ecc76d3edfb0a54ffab53c2e296d7f (patch)
treef77f9b625446de7f0b9de1553fc52d702c4cbc69 /src/app/utils.rs
parent2d80413609130f1c121dcae39a150a27dd9f02ea (diff)
downloadcalendar-f9f49285c5ecc76d3edfb0a54ffab53c2e296d7f.tar.gz
calendar-f9f49285c5ecc76d3edfb0a54ffab53c2e296d7f.tar.bz2
calendar-f9f49285c5ecc76d3edfb0a54ffab53c2e296d7f.zip
Apply linter advices
Diffstat (limited to 'src/app/utils.rs')
-rw-r--r--src/app/utils.rs9
1 files changed, 0 insertions, 9 deletions
diff --git a/src/app/utils.rs b/src/app/utils.rs
deleted file mode 100644
index 673b96e..0000000
--- a/src/app/utils.rs
+++ /dev/null
@@ -1,9 +0,0 @@
-use std::future::Future;
-
-/// Spawns a task on the default executor, without waiting for it to complete
-pub fn spawn<F>(future: F)
-where
- F: Future<Output = ()> + 'static,
-{
- gtk4::glib::MainContext::default().spawn_local(future);
-}