From 5ba9fafeb897829453273b9c1c44d946c2e5804d Mon Sep 17 00:00:00 2001 From: npty Date: Tue, 13 Aug 2024 16:45:04 +0700 Subject: [PATCH] chore: remove unnecessary type inference --- move/operators/sources/operators.move | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/move/operators/sources/operators.move b/move/operators/sources/operators.move index a15e7d2e..ecc3325b 100644 --- a/move/operators/sources/operators.move +++ b/move/operators/sources/operators.move @@ -137,13 +137,13 @@ module operators::operators { assert!(self.caps.contains(cap_id), ECapNotFound); // Remove the capability from the `Operators` struct to loan it out - let cap = self.caps.remove(cap_id); + let cap = self.caps.remove(cap_id); // Create a new `Referent` to store the loaned capability - let mut referent = borrow::new(cap, ctx); + let mut referent = borrow::new(cap, ctx); // Borrow the T capability and a Borrow hot potato object from the `Referent` - let (loaned_cap, borrow_obj) = borrow::borrow(&mut referent); + let (loaned_cap, borrow_obj) = borrow::borrow(&mut referent); // Store the `Referent` in the `Operators` struct self.loaned_caps.add(cap_id, referent);