Skip to content

Commit da08d64

Browse files
committed
Rename SqlState::Unknown to Other
In line with Type
1 parent 59b9d66 commit da08d64

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

build.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -358,7 +358,7 @@ pub enum SqlState {{
358358

359359
write!(file,
360360
" /// An unknown code
361-
Unknown(String)
361+
Other(String)
362362
}}
363363
"
364364
).unwrap();
@@ -381,7 +381,7 @@ impl SqlState {{
381381
pub fn from_code(s: String) -> SqlState {{
382382
match SQLSTATE_MAP.get(&*s) {{
383383
Some(state) => state.clone(),
384-
None => SqlState::Unknown(s)
384+
None => SqlState::Other(s)
385385
}}
386386
}}
387387
@@ -397,7 +397,7 @@ impl SqlState {{
397397
}
398398

399399
write!(file, r#"
400-
SqlState::Unknown(ref s) => s,
400+
SqlState::Other(ref s) => s,
401401
}}
402402
}}
403403
}}
@@ -419,7 +419,7 @@ impl fmt::Debug for SqlState {{
419419
}
420420

421421
write!(file, r#"
422-
SqlState::Unknown(ref s) => return write!(fmt, "Unknown({{:?}})", s),
422+
SqlState::Other(ref s) => return write!(fmt, "Other({{:?}})", s),
423423
}};
424424
fmt.write_str(s)
425425
}}

0 commit comments

Comments
 (0)