From d8c90de08ec495779a681ad4371447be2c1540e0 Mon Sep 17 00:00:00 2001 From: ksrichard Date: Thu, 12 Dec 2024 12:38:21 +0100 Subject: [PATCH] clippy fixes --- applications/tari_dan_app_utilities/src/lib.rs | 2 -- .../src/template_manager/implementation/service.rs | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/applications/tari_dan_app_utilities/src/lib.rs b/applications/tari_dan_app_utilities/src/lib.rs index b08d252db..2fef04f92 100644 --- a/applications/tari_dan_app_utilities/src/lib.rs +++ b/applications/tari_dan_app_utilities/src/lib.rs @@ -20,8 +20,6 @@ // WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE // USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -extern crate core; - pub mod base_layer_scanner; pub mod common; pub mod configuration; diff --git a/applications/tari_dan_app_utilities/src/template_manager/implementation/service.rs b/applications/tari_dan_app_utilities/src/template_manager/implementation/service.rs index f95a8e2cb..b588968cb 100644 --- a/applications/tari_dan_app_utilities/src/template_manager/implementation/service.rs +++ b/applications/tari_dan_app_utilities/src/template_manager/implementation/service.rs @@ -101,7 +101,7 @@ impl TemplateManagerService { .download_queue .send(DownloadRequest { template_type: template.template_type, - address: Hash::try_from(template.template_address.into_array()).unwrap(), + address: Hash::from(template.template_address.into_array()), expected_binary_hash: template.expected_hash, url: template.url.unwrap(), })