checker: simplify generic structs (#10167)

This commit is contained in:
yuyi 2021-05-23 10:54:58 +08:00 committed by GitHub
parent 79b97fa361
commit ae9f8627fc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 45 additions and 88 deletions

View file

@ -55,10 +55,9 @@ pub fn panic(s string) {
exit(1)
}
struct Option<T> {
struct Option {
state byte
err Error
data T
}
pub struct Error {