mirror of
https://github.com/kmc7468/cs420.git
synced 2026-11-04 08:10:29 +09:00
Update skeleton
This commit is contained in:
1 parent
72ec63ea82
commit
5b45cf1fd8
5 files changed
+34
-5
No files matched your search
+3
-4
@@ -611,10 +611,9 @@ impl TryFrom<&ast::Initializer> for Constant {
|
||||
type Error = ();
|
||||
|
||||
fn try_from(initializer: &ast::Initializer) -> Result<Self, Self::Error> {
|
||||
if let ast::Initializer::Expression(expr) = &initializer {
|
||||
Self::try_from(&expr.node)
|
||||
} else {
|
||||
Err(())
|
||||
match initializer {
|
||||
ast::Initializer::Expression(expr) => Self::try_from(&expr.node),
|
||||
ast::Initializer::List(_) => todo!(),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user