Remove redundant calls to borrow() (#1393)

Co-authored-by: Keith Yeung <kungfukeith11@gmail.com>
Co-authored-by: Francisco Aguirre <franciscoaguirreperez@gmail.com>
This commit is contained in:
Marcin S
2023-09-05 12:11:30 +02:00
committed by GitHub
parent 12194445b2
commit ec8949f624
3 changed files with 5 additions and 9 deletions
+2 -2
View File
@@ -1092,7 +1092,7 @@ impl<T: Config> Pallet<T> {
origin.clone(),
page_index,
page.first_index,
payload.deref(),
payload,
weight,
overweight_limit,
) {
@@ -1242,7 +1242,7 @@ impl<T: Config> Pallet<T> {
if let Some((_, processed, message)) =
page.peek_index(i.try_into().expect("std-only code"))
{
let msg = String::from_utf8_lossy(message.deref());
let msg = String::from_utf8_lossy(message);
if processed {
page_info.push('*');
}