diff --git a/Cargo.toml b/Cargo.toml
index 0d2e13f..f86ac74 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -9,8 +9,8 @@ description = "A small library which provides bindings to control existing mpv i
license = "GPL-3.0"
repository = "https://git.pvv.ntnu.no/Grzegorz/mpvipc-async"
documentation = "https://pages.pvv.ntnu.no/Grzegorz/mpvipc-async/main/docs/mpvipc_async/"
-edition = "2021"
-rust-version = "1.75"
+edition = "2024"
+rust-version = "1.85.0"
[dependencies]
serde_json = "1.0.145"
diff --git a/examples/media_player.rs b/examples/media_player.rs
index afe8e63..243db9f 100644
--- a/examples/media_player.rs
+++ b/examples/media_player.rs
@@ -1,5 +1,5 @@
use futures::StreamExt;
-use mpvipc_async::{parse_property, Event, Mpv, MpvDataType, MpvError, MpvExt, Property};
+use mpvipc_async::{Event, Mpv, MpvDataType, MpvError, MpvExt, Property, parse_property};
fn seconds_to_hms(total: f64) -> String {
let total = total as u64;
diff --git a/rustfmt.toml b/rustfmt.toml
new file mode 100644
index 0000000..3501136
--- /dev/null
+++ b/rustfmt.toml
@@ -0,0 +1 @@
+style_edition = "2024"
diff --git a/src/core_api.rs b/src/core_api.rs
index 87e3338..80f3fd3 100644
--- a/src/core_api.rs
+++ b/src/core_api.rs
@@ -10,9 +10,9 @@ use tokio::{
};
use crate::{
+ Event, MpvError,
ipc::{MpvIpc, MpvIpcCommand, MpvIpcEvent, MpvIpcResponse},
message_parser::TypeHandler,
- Event, MpvError,
};
/// All possible commands that can be sent to mpv.
@@ -162,7 +162,7 @@ pub trait GetPropertyTypeHandler: Sized {
// TODO: fix this
#[allow(async_fn_in_trait)]
async fn get_property_generic(instance: &Mpv, property: &str)
- -> Result