fn clear_approval(&mut self, id: TokenId) -> Result<(), Error> {
            if !self.token_approvals.contains_key(&id) {
                return Ok(());
            };
            match self.token_approvals.take(&id) {
                Some(_res) => Ok(()),
                None => Err(Error::CannotRemove),
            }
        }
/// Removes existing approval from token `id`.
Removes existing approval from token `id`.
Removes existing approval from token ` id ` .
fn clear_approval(&mut self, id: TokenId) -> Result<(), Error> {
            if !self.token_approvals.contains_key(&id) {
                return Ok(());
            };
            match self.token_approvals.take(&id) {
                Some(_res) => Ok(()),
                None => Err(Error::CannotRemove),
            }
        }
fn clear_approval ( & mut self , id : TokenId ) -> Result < ( ) , Error > { if ! self . token_approvals . contains_key ( & id ) { return Ok ( ( ) ) ; } ; match self . token_approvals . take ( & id ) { Some ( _res ) => Ok ( ( ) ) , None => Err ( Error :: CannotRemove ) , } }
Removes existing approval from token `id`.
Removes existing approval from token ` id ` .
&mut self
id
TokenId
&mut self
id
TokenId