diff options
Diffstat (limited to 'vendor/prodash/src/tree/item.rs')
-rw-r--r-- | vendor/prodash/src/tree/item.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vendor/prodash/src/tree/item.rs b/vendor/prodash/src/tree/item.rs index d8c4a7548..17dbb64da 100644 --- a/vendor/prodash/src/tree/item.rs +++ b/vendor/prodash/src/tree/item.rs @@ -292,7 +292,7 @@ impl Item { /// /// Use this to provide additional,human-readable information about the progress /// made, including indicating success or failure. - pub fn message(&mut self, level: MessageLevel, message: impl Into<String>) { + pub fn message(&self, level: MessageLevel, message: impl Into<String>) { let message: String = message.into(); self.messages.lock().push_overwrite( level, @@ -396,7 +396,7 @@ impl crate::Progress for Item { Item::id(self) } - fn message(&mut self, level: MessageLevel, message: impl Into<String>) { + fn message(&self, level: MessageLevel, message: impl Into<String>) { Item::message(self, level, message) } |