@@ -1086,7 +1086,7 @@ impl Client {
10861086
10871087 fn ptrace_all_threads ( pid : Pid ) -> Result < Vec < PtracedPid > > {
10881088 let mut tids = Vec :: new ( ) ;
1089- for entry in fs:: read_dir ( format ! ( "/proc/{}/task" , pid ) ) ? {
1089+ for entry in fs:: read_dir ( format ! ( "/proc/{pid }/task" ) ) ? {
10901090 let entry = match entry {
10911091 Err ( _) => continue ,
10921092 Ok ( a) => a,
@@ -1104,7 +1104,7 @@ impl Client {
11041104 if tid == pid {
11051105 return Err ( e. into ( ) ) ;
11061106 }
1107- eprintln ! ( "ptrace::attach({}, ...) failed (continuing)" , pid ) ;
1107+ eprintln ! ( "ptrace::attach({pid }, ...) failed (continuing)" ) ;
11081108 continue ;
11091109 }
11101110 let ptid = PtracedPid ( tid) ;
@@ -1129,7 +1129,7 @@ impl Client {
11291129 // TODO: match st_dev too to avoid false positives
11301130 let my_ino = fstat ( my_fd) ?. st_ino ;
11311131 let mut fds_to_replace = Vec :: new ( ) ;
1132- for entry in fs:: read_dir ( format ! ( "/proc/{}/fd" , pid ) ) ? {
1132+ for entry in fs:: read_dir ( format ! ( "/proc/{pid }/fd" ) ) ? {
11331133 let entry = entry?;
11341134 if let Ok ( file) = File :: options ( ) . open ( entry. path ( ) ) {
11351135 if fstat ( file. as_raw_fd ( ) ) ?. st_ino == my_ino {
@@ -1138,7 +1138,7 @@ impl Client {
11381138 }
11391139 }
11401140 let mut pages_to_replace = Vec :: new ( ) ;
1141- for line in read_to_string ( format ! ( "/proc/{}/maps" , pid ) ) ?. lines ( ) {
1141+ for line in read_to_string ( format ! ( "/proc/{pid }/maps" ) ) ?. lines ( ) {
11421142 let f: Vec < & str > = line. split_whitespace ( ) . collect ( ) ;
11431143 let ino: u64 = f[ 4 ] . parse ( ) ?;
11441144 if ino == my_ino {
@@ -1290,7 +1290,7 @@ impl Client {
12901290 self . process_futex_signal ( recv) ?;
12911291 } ,
12921292 a => {
1293- eprintln ! ( "Received unknown cross-domain command {}" , a ) ;
1293+ eprintln ! ( "Received unknown cross-domain command {a}" ) ;
12941294 } ,
12951295 } ;
12961296 self . gpu_ctx . poll_cmd ( ) ?;
@@ -1445,7 +1445,7 @@ fn find_vdso(pid: Option<Pid>) -> Result<(usize, usize), Errno> {
14451445}
14461446
14471447pub fn start_x11bridge ( display : u32 ) {
1448- let sock_path = format ! ( "/tmp/.X11-unix/X{}" , display ) ;
1448+ let sock_path = format ! ( "/tmp/.X11-unix/X{display}" ) ;
14491449
14501450 // Look for a syscall instruction in the vDSO. We assume all processes map
14511451 // the same vDSO (which should be true if they are running under the same
@@ -1524,7 +1524,7 @@ pub fn start_x11bridge(display: u32) {
15241524 . borrow_mut ( )
15251525 . process_socket ( events)
15261526 . map_err ( |e| {
1527- eprintln ! ( "Client {} disconnected with error: {:?}" , fd , e ) ;
1527+ eprintln ! ( "Client {fd } disconnected with error: {e :?}" ) ;
15281528 e
15291529 } )
15301530 . unwrap_or ( ClientEvent :: Close ) ;
@@ -1569,7 +1569,7 @@ pub fn start_x11bridge(display: u32) {
15691569 . borrow_mut ( )
15701570 . process_vgpu ( )
15711571 . map_err ( |e| {
1572- eprintln ! ( "Server {} disconnected with error: {:?}" , fd , e ) ;
1572+ eprintln ! ( "Server {fd } disconnected with error: {e :?}" ) ;
15731573 e
15741574 } )
15751575 . unwrap_or ( true ) ;
0 commit comments