From 4356d02828c08c9c9b999570b4ce4c50d07f55fb Mon Sep 17 00:00:00 2001 From: Stephen Chung Date: Mon, 5 Oct 2020 12:05:46 +0800 Subject: [PATCH] Fix no_object builds. --- src/engine.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/engine.rs b/src/engine.rs index 327ccc8e..231ceb1c 100644 --- a/src/engine.rs +++ b/src/engine.rs @@ -233,9 +233,13 @@ impl Target<'_> { } /// Propagate a changed value back to the original source. /// This has no effect except for string indexing. + #[cfg(not(feature = "no_object"))] + #[inline(always)] pub fn propagate_changed_value(&mut self) { match self { - Self::Ref(_) | Self::LockGuard(_) | Self::Value(_) => (), + Self::Ref(_) | Self::Value(_) => (), + #[cfg(not(feature = "no_closure"))] + Self::LockGuard(_) => (), #[cfg(not(feature = "no_index"))] Self::StringChar(_, _, ch) => { let new_val = ch.clone();