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: error.rs
    path of file: ./repos/amqprs/amqp_serde/src
    
    the code of the file until where you have to start completion: // Copyright 2018 Serde Developers
//
// Licensed under the
    
    fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
        match self {
            Error::Message(msg) => write!(f, "{}", msg),
            Error::Eof => f.write_str("unexpected end of input"),
            Error::Syntax => f.write_str("unexpected syntax"),
            Error::Incomplete => f.write_str("incomplete deserializaton"),
            Error::ExpectedLength => f.write_str("expect length value before raw bytes"),
        }
    }