File tree Expand file tree Collapse file tree 1 file changed +2
-11
lines changed
src/tools/run-make-support/src Expand file tree Collapse file tree 1 file changed +2
-11
lines changed Original file line number Diff line number Diff line change @@ -111,12 +111,7 @@ pub fn static_lib_name(name: &str) -> String {
111111 // endif
112112 // ```
113113 assert ! ( !name. contains( char :: is_whitespace) , "static library name cannot contain whitespace" ) ;
114-
115- if is_msvc ( ) {
116- format ! ( "{name}.lib" )
117- } else {
118- format ! ( "lib{name}.a" )
119- }
114+ if is_msvc ( ) { format ! ( "{name}.lib" ) } else { format ! ( "lib{name}.a" ) }
120115}
121116
122117/// Construct a path to a dynamic library under `$TMPDIR` given the library name. This will return a
@@ -159,11 +154,7 @@ pub fn rust_lib(name: &str) -> PathBuf {
159154
160155/// Construct the binary name based on platform.
161156pub fn bin_name ( name : & str ) -> String {
162- if is_windows ( ) {
163- format ! ( "{name}.exe" )
164- } else {
165- name. to_string ( )
166- }
157+ if is_windows ( ) { format ! ( "{name}.exe" ) } else { name. to_string ( ) }
167158}
168159
169160/// Use `cygpath -w` on a path to get a Windows path string back. This assumes that `cygpath` is
You can’t perform that action at this time.
0 commit comments