]> git.lizzy.rs Git - rust.git/commitdiff
simply the initialization
authorGuanqun Lu <guanqun.lu@gmail.com>
Tue, 10 Sep 2019 14:18:24 +0000 (22:18 +0800)
committerGuanqun Lu <guanqun.lu@gmail.com>
Sat, 14 Sep 2019 23:38:18 +0000 (07:38 +0800)
src/librustc_typeck/check/mod.rs

index 02e7d97ccdf7b91796d780e00328ac160985f213..0799acc730bf78568fa40e6784453c63b1915913 100644 (file)
@@ -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 {