fn fmt()

in rust/ccommon-rs/src/error.rs [77:94]


    fn fmt(&self, fmt: &mut Formatter) -> fmt::Result {
        #[cfg(rustc_1_38)]
        let res = write!(
            fmt,
            "Unable to allocate a value of type {} with size {}",
            std::any::type_name::<T>(),
            std::mem::size_of::<T>()
        );

        #[cfg(not(rustc_1_38))]
        let res = write!(
            fmt,
            "Unable to allocate a value of size {}",
            std::mem::size_of::<T>()
        );

        res
    }