You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: actions.rs
    path of file: ./repos/lol-html/src/parser/tag_scanner
    
    the code of the file until where you have to start completion: use super::*;
use crate::parser::state_machine::{ActionError, ActionResult, StateMachineActions};

impl<S: TagHintSink> StateMachineActions for TagScanner<S> {
    impl_common_sm_actions!();

    #[inline]
    fn create_start_tag(&mut self, _input: &[u8]) {
        self.tag_name_start = self.pos();

    
    fn emit_tag(&mut self, _input: &[u8]) -> ActionResult {
        // NOTE: exit from any non-initial text parsing mode always happens on tag emission
        // (except for CDATA, but there is a special action to take care of it).
        let text_type = self
            .pending_text_type_change
            .take()
            .unwrap_or(TextType::Data);

        self.set_last_text_type(text_type);

        Ok(())
    }