aboutsummaryrefslogtreecommitdiff
path: root/swaystatus-plugin
diff options
context:
space:
mode:
authorAndreas Grois <andi@grois.info>2021-11-29 22:41:08 +0100
committerAndreas Grois <andi@grois.info>2021-11-29 22:41:08 +0100
commit74d3f3420e439d0697de1563b1860f062731729e (patch)
tree4d21afb3bcabe4f5bda9acdd451ef7eb3cb5bdb2 /swaystatus-plugin
parent6277f4351fd68f1cdd434818eac7b0d18eac3c76 (diff)
Update Rust edition to 2021
Diffstat (limited to 'swaystatus-plugin')
-rw-r--r--swaystatus-plugin/Cargo.toml2
-rw-r--r--swaystatus-plugin/src/lib.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/swaystatus-plugin/Cargo.toml b/swaystatus-plugin/Cargo.toml
index c521baa..8b2f7d9 100644
--- a/swaystatus-plugin/Cargo.toml
+++ b/swaystatus-plugin/Cargo.toml
@@ -2,7 +2,7 @@
name = "swaystatus-plugin"
version = "0.1.0"
authors = ["Andreas Grois <andi@grois.info>"]
-edition = "2018"
+edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
diff --git a/swaystatus-plugin/src/lib.rs b/swaystatus-plugin/src/lib.rs
index 8a632cf..e54e057 100644
--- a/swaystatus-plugin/src/lib.rs
+++ b/swaystatus-plugin/src/lib.rs
@@ -60,7 +60,7 @@ macro_rules! declare_swaystatus_module {
// make sure the constructor is the correct type.
let constructor: fn() -> $plugin_type = $constructor;
let object = constructor();
- let boxed: Box<$crate::SwayStatusModule> = Box::new(object);
+ let boxed: Box<dyn $crate::SwayStatusModule> = Box::new(object);
Box::into_raw(boxed)
}
#[no_mangle]