Skip to content

Commit ee0a8dd

Browse files
ghaithmhasel
andauthored
Apply suggestions from code review
Co-authored-by: Michael <78988079+mhasel@users.noreply.github.com>
1 parent 3b57808 commit ee0a8dd

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/codegen/debug.rs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,7 @@ impl<'ink> DebugBuilder<'ink> {
323323
file,
324324
location.get_line_plus_one() as u32,
325325
size,
326-
0, // no alignment for now
326+
0, // No set alignment
327327
offset,
328328
DIFlags::PUBLIC,
329329
di_type.into(),
@@ -340,7 +340,7 @@ impl<'ink> DebugBuilder<'ink> {
340340
file,
341341
location.get_line_plus_one() as u32,
342342
size,
343-
0, // no alignment for now
343+
0, // No set alignment
344344
DIFlags::PUBLIC,
345345
None,
346346
types.as_slice(),
@@ -471,7 +471,7 @@ impl<'ink> DebugBuilder<'ink> {
471471
file,
472472
location.get_line_plus_one() as u32,
473473
file.as_debug_info_scope(),
474-
0, // no alignment for now
474+
0, //No set alignment
475475
);
476476
self.register_concrete_type(name, DebugType::Derived(typedef));
477477

@@ -655,7 +655,6 @@ impl<'ink> Debug<'ink> for DebugBuilder<'ink> {
655655
let location = &datatype.location;
656656
match type_info {
657657
DataTypeInformation::Struct { members, .. } => {
658-
//TODO: we can only register this after expansion
659658
self.create_struct_type(name, members.as_slice(), location, index, types_index)
660659
}
661660
DataTypeInformation::Array { name, inner_type_name, dimensions, .. } => {

0 commit comments

Comments
 (0)