try! -> ?

This commit is contained in:
Steven Fackler
2017-02-14 22:46:19 -08:00
parent 73e4ec1c0d
commit 4c91a68dcc
31 changed files with 332 additions and 336 deletions

View File

@@ -159,7 +159,7 @@ r#"impl fmt::Display for Type {{
fn fmt(&self, fmt: &mut fmt::Formatter) -> fmt::Result {{
match self.schema() {{
"public" | "pg_catalog" => {{}}
schema => try!(write!(fmt, "{{}}.", schema)),
schema => write!(fmt, "{{}}.", schema)?,
}}
fmt.write_str(self.name())
}}