@@ -16,8 +16,8 @@ pub enum BadMemOp {
1616impl Display for BadMemOp {
1717 fn fmt ( & self , f : & mut Formatter < ' _ > ) -> Result < ( ) , fmt:: Error > {
1818 match self {
19- BadMemOp :: Read ( addr) => write ! ( f, "memory read from {:>013o} failed" , addr ) ,
20- BadMemOp :: Write ( addr) => write ! ( f, "memory write to {:>013o} failed" , addr ) ,
19+ BadMemOp :: Read ( addr) => write ! ( f, "memory read from {addr :>013o} failed" ) ,
20+ BadMemOp :: Write ( addr) => write ! ( f, "memory write to {addr :>013o} failed" ) ,
2121 }
2222 }
2323}
@@ -252,15 +252,13 @@ impl Display for AlarmDetails {
252252 QSAL ( instruction, op, msg) => {
253253 write ! (
254254 f,
255- "QSAL: during execution of instruction {:?}, {}: {}" ,
256- instruction, op, msg,
255+ "QSAL: during execution of instruction {instruction:?}, {op}: {msg}" ,
257256 )
258257 }
259258 PSAL ( address, msg) => {
260259 write ! (
261260 f,
262- "PSAL: P register set to illegal address {:>06o}: {}" ,
263- address, msg
261+ "PSAL: P register set to illegal address {address:>06o}: {msg}" ,
264262 )
265263 }
266264 OCSAL ( inst, msg) => {
@@ -274,8 +272,7 @@ impl Display for AlarmDetails {
274272 ROUNDTUITAL ( msg) => {
275273 write ! (
276274 f,
277- "ROUNDTUITAL: the program used a feature not supported in the emulator: {}" ,
278- msg
275+ "ROUNDTUITAL: the program used a feature not supported in the emulator: {msg}" ,
279276 )
280277 }
281278
@@ -284,11 +281,11 @@ impl Display for AlarmDetails {
284281 operand,
285282 message,
286283 } => {
287- write ! ( f, "IOSAL: I/O alarm during operation on unit {:o}" , unit , ) ?;
284+ write ! ( f, "IOSAL: I/O alarm during operation on unit {unit :o}" ) ?;
288285 if let Some ( oper) = operand {
289- write ! ( f, " with operand {}" , oper ) ?;
286+ write ! ( f, " with operand {oper}" ) ?;
290287 }
291- write ! ( f, ": {}" , message )
288+ write ! ( f, ": {message}" )
292289 }
293290
294291 MISAL { affected_unit } => write ! (
@@ -317,8 +314,7 @@ impl Display for AlarmDetails {
317314 DEFERLOOPAL { address } => {
318315 write ! (
319316 f,
320- "DEFERLOOPAL: infinite loop in deferred address at {:>012o}" ,
321- address,
317+ "DEFERLOOPAL: infinite loop in deferred address at {address:>012o}" ,
322318 )
323319 }
324320 }
@@ -338,7 +334,7 @@ impl Display for UnmaskedAlarm {
338334 fn fmt ( & self , f : & mut Formatter < ' _ > ) -> Result < ( ) , fmt:: Error > {
339335 write ! ( f, "unmasked alarm {}" , self . alarm) ?;
340336 if let Some ( address) = self . address {
341- write ! ( f, "at address {}" , address )
337+ write ! ( f, "at address {address}" )
342338 } else {
343339 Ok ( ( ) )
344340 }
0 commit comments