From 863f48604c6c7645638582ee7bb957a595709ad8 Mon Sep 17 00:00:00 2001 From: selfhoster1312 Date: Wed, 19 Apr 2023 22:25:50 +0200 Subject: [PATCH] Remove Sized bound on Module --- README.md | 8 ++++++++ src/modules/mod.rs | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..92013a8 --- /dev/null +++ b/README.md @@ -0,0 +1,8 @@ +error[E0161]: cannot move a value of type `dyn Module` + --> src/modules/mod.rs:83:19 + | +83 | let res = cmd.run(); + | ^^^^^^^^^ the size of `dyn Module` cannot be statically determined + +For more information about this error, try `rustc --explain E0161`. +error: could not compile `rustible` due to previous error diff --git a/src/modules/mod.rs b/src/modules/mod.rs index d11880a..825262c 100644 --- a/src/modules/mod.rs +++ b/src/modules/mod.rs @@ -116,7 +116,7 @@ pub trait ModuleSetup { /// A Module takes some arguments which can be serialized back to the playbook run, and can be run to produce /// a certain result. -pub trait Module: Sized { +pub trait Module { /// Return the module name as string slice fn module_name(&self) -> &'static str;