mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
hypervisor: x86: emulator: drop unneeded curly brackets
There is no need to have a pair of curly brackets for structures without any member. No functional change. Signed-off-by: Wei Liu <liuwe@microsoft.com>
This commit is contained in:
@@ -482,7 +482,7 @@ macro_rules! gen_handler_match {
|
||||
($value: ident, $( ($module:ident, $code:ident) ),* ) => {
|
||||
match $value {
|
||||
$(
|
||||
Code::$code => Some(Box::new($module::$code {})),
|
||||
Code::$code => Some(Box::new($module::$code)),
|
||||
)*
|
||||
_ => None,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user