File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -78,7 +78,7 @@ impl EmbedPython {
78
78
} else {
79
79
unreachable ! ( )
80
80
} ;
81
- let name_str = format ! ( "_RUST_{}" , name ) ;
81
+ let name_str = format ! ( "_RUST_{name}" ) ;
82
82
self . python . push_str ( & name_str) ;
83
83
self . column += name_str. chars ( ) . count ( ) - 6 + 1 ;
84
84
self . variables . entry ( name_str) . or_insert ( name) ;
@@ -105,7 +105,7 @@ impl EmbedPython {
105
105
}
106
106
}
107
107
TokenTree :: Ident ( x) => {
108
- write ! ( & mut self . python, "{}" , x ) . unwrap ( ) ;
108
+ write ! ( & mut self . python, "{x}" ) . unwrap ( ) ;
109
109
let end_span = token. span ( ) . end ( ) ;
110
110
self . line = end_span. line ( ) ;
111
111
self . column = end_span. column ( ) ;
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ fn ensure_libpython_symbols_loaded(py: Python) -> PyResult<()> {
17
17
let sysconfig = py. import ( "sysconfig" ) ?;
18
18
let libdir: String = sysconfig. getattr ( "get_config_var" ) ?. call1 ( ( "LIBDIR" , ) ) ?. extract ( ) ?;
19
19
let so_name: String = sysconfig. getattr ( "get_config_var" ) ?. call1 ( ( "INSTSONAME" , ) ) ?. extract ( ) ?;
20
- let path = std:: ffi:: CString :: new ( format ! ( "{}/{}" , libdir , so_name ) ) . unwrap ( ) ;
20
+ let path = std:: ffi:: CString :: new ( format ! ( "{libdir }/{so_name}" ) ) . unwrap ( ) ;
21
21
unsafe {
22
22
libc:: dlopen ( path. as_ptr ( ) , libc:: RTLD_NOW | libc:: RTLD_GLOBAL ) ;
23
23
}
You can’t perform that action at this time.
0 commit comments