Answers for "rust•armanriazi•error•cannot be formatted using `{:?}`"

0

rust•armanriazi•error•cannot be formatted using `{:?}`

Add:  #[derive(Debug)] to struct or enum
Posted by: Guest on March-08-2022
0

rust•armanriazi•error•cannot be formatted with the default formatter

impl Display for File {
   fn fmt(&self, f:
          &mut fmt::Formatter,
   ) -> fmt::Result {
      write!(f, "<{} ({})>",
             self.name, self.state)
   }
}
Posted by: Guest on March-08-2022

Code answers related to "rust•armanriazi•error•cannot be formatted using `{:?}`"

Browse Popular Code Answers by Language