Skip to content

Commit 71d4549

Browse files
author
Guanqun Lu
committed
simply the initialization
1 parent ca3766e commit 71d4549

File tree

1 file changed

+1
-1
lines changed
  • src/librustc_typeck/check

1 file changed

+1
-1
lines changed

src/librustc_typeck/check/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -400,7 +400,7 @@ pub struct UnsafetyState {
400400

401401
impl UnsafetyState {
402402
pub fn function(unsafety: hir::Unsafety, def: hir::HirId) -> UnsafetyState {
403-
UnsafetyState { def: def, unsafety: unsafety, unsafe_push_count: 0, from_fn: true }
403+
UnsafetyState { def, unsafety, unsafe_push_count: 0, from_fn: true }
404404
}
405405

406406
pub fn recurse(&mut self, blk: &hir::Block) -> UnsafetyState {

0 commit comments

Comments
 (0)