Skip to content

Commit 88bd564

Browse files
authored
Rollup merge of #64475 - guanqun:use-same-name, r=Centril
simplify the initialization
2 parents 82927cf + 71d4549 commit 88bd564

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

+1-1
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)