Avoid unneeded return keywords.
This commit is contained in:
@@ -41,10 +41,10 @@ impl StackRef {
|
|||||||
|
|
||||||
// Offset where SP is pointing. (All ISAs have stacks growing downwards.)
|
// Offset where SP is pointing. (All ISAs have stacks growing downwards.)
|
||||||
let sp_offset = -(size as StackOffset);
|
let sp_offset = -(size as StackOffset);
|
||||||
return StackRef {
|
StackRef {
|
||||||
base: StackBase::SP,
|
base: StackBase::SP,
|
||||||
offset: frame[ss].offset - sp_offset,
|
offset: frame[ss].offset - sp_offset,
|
||||||
};
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user