Skip to content

Commit

Permalink
simply the initialization
Browse files Browse the repository at this point in the history
  • Loading branch information
Guanqun Lu committed Sep 14, 2019
1 parent ca3766e commit 71d4549
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/librustc_typeck/check/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 71d4549

Please sign in to comment.