Rollup merge of #64475 - guanqun:use-same-name, r=Centril
simplify the initialization
This commit is contained in:
commit
88bd5646f1
1 changed files with 1 additions and 1 deletions
|
@ -400,7 +400,7 @@ pub struct UnsafetyState {
|
|||
|
||||
impl UnsafetyState {
|
||||
pub fn function(unsafety: hir::Unsafety, def: hir::HirId) -> UnsafetyState {
|
||||
UnsafetyState { def: def, unsafety: unsafety, unsafe_push_count: 0, from_fn: true }
|
||||
UnsafetyState { def, unsafety, unsafe_push_count: 0, from_fn: true }
|
||||
}
|
||||
|
||||
pub fn recurse(&mut self, blk: &hir::Block) -> UnsafetyState {
|
||||
|
|
Loading…
Reference in a new issue