@@ -103,7 +103,7 @@ impl GCWork<Ruby> for ProcessObjFreeCandidates {
103
103
104
104
let n_cands = obj_free_candidates. len ( ) ;
105
105
106
- debug ! ( "Total: {} candidates" , n_cands ) ;
106
+ debug ! ( "Total: {n_cands } candidates" ) ;
107
107
108
108
// Process obj_free
109
109
let mut new_candidates = Vec :: new ( ) ;
@@ -113,9 +113,7 @@ impl GCWork<Ruby> for ProcessObjFreeCandidates {
113
113
// Forward and add back to the candidate list.
114
114
let new_object = object. forward ( ) ;
115
115
trace ! (
116
- "Forwarding obj_free candidate: {} -> {}" ,
117
- object,
118
- new_object
116
+ "Forwarding obj_free candidate: {object} -> {new_object}"
119
117
) ;
120
118
new_candidates. push ( new_object) ;
121
119
} else {
@@ -158,11 +156,10 @@ trait GlobalTableProcessingWork {
158
156
let forward_object = |_worker, object : ObjectReference , _pin| {
159
157
debug_assert ! (
160
158
mmtk:: memory_manager:: is_mmtk_object( object. to_raw_address( ) ) . is_some( ) ,
161
- "{} is not an MMTk object" ,
162
- object
159
+ "{object} is not an MMTk object"
163
160
) ;
164
161
let result = object. forward ( ) ;
165
- trace ! ( "Forwarding reference: {} -> {}" , object , result ) ;
162
+ trace ! ( "Forwarding reference: {object } -> {result}" ) ;
166
163
result
167
164
} ;
168
165
@@ -217,13 +214,11 @@ impl GCWork<Ruby> for UpdateWbUnprotectedObjectsList {
217
214
// Forward and add back to the candidate list.
218
215
let new_object = object. forward ( ) ;
219
216
trace ! (
220
- "Forwarding WB-unprotected object: {} -> {}" ,
221
- object,
222
- new_object
217
+ "Forwarding WB-unprotected object: {object} -> {new_object}"
223
218
) ;
224
219
objects. insert ( new_object) ;
225
220
} else {
226
- trace ! ( "Removing WB-unprotected object from list: {}" , object ) ;
221
+ trace ! ( "Removing WB-unprotected object from list: {object}" ) ;
227
222
}
228
223
}
229
224
0 commit comments