Avoid unneeded return keywords.

This commit is contained in:
Dan Gohman
2017-11-08 10:40:54 -08:00
parent 0d825b4643
commit 809e2f0c91

View File

@@ -41,10 +41,10 @@ impl StackRef {
// Offset where SP is pointing. (All ISAs have stacks growing downwards.)
let sp_offset = -(size as StackOffset);
return StackRef {
StackRef {
base: StackBase::SP,
offset: frame[ss].offset - sp_offset,
};
}
}
}