From 74d3f3420e439d0697de1563b1860f062731729e Mon Sep 17 00:00:00 2001 From: Andreas Grois Date: Mon, 29 Nov 2021 22:41:08 +0100 Subject: Update Rust edition to 2021 --- swaystatus-plugin/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'swaystatus-plugin/src') 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 = Box::new(object); Box::into_raw(boxed) } #[no_mangle] -- cgit v1.2.3