mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-15 08:30:02 +00:00
fix warning in generated code
This commit is contained in:
parent
8155c0cc8b
commit
8da0783dde
1 changed files with 2 additions and 2 deletions
|
|
@ -483,7 +483,7 @@ fn parse_memory_regions<T: BufRead>(
|
|||
// keep adding _ to the end of the name until it's unique
|
||||
loop {
|
||||
if description.memory_regions.iter().find(|&m| m.name == mr.name).is_some() {
|
||||
mr.name.push_str("_");
|
||||
mr.name.push_str("_X");
|
||||
continue;
|
||||
}
|
||||
break;
|
||||
|
|
@ -538,7 +538,7 @@ fn generate_constants<T: BufRead>(
|
|||
// keep adding _ to the end of the name until it's unique
|
||||
loop {
|
||||
if description.constants.iter().find(|&c| c.name == constant_descriptor.name).is_some() {
|
||||
constant_descriptor.name.push_str("_");
|
||||
constant_descriptor.name.push_str("_X");
|
||||
continue;
|
||||
}
|
||||
break;
|
||||
|
|
|
|||
Loading…
Reference in a new issue