File tree 1 file changed +2
-11
lines changed
src/tools/run-make-support/src
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 {
111
111
// endif
112
112
// ```
113
113
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" ) }
120
115
}
121
116
122
117
/// 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 {
159
154
160
155
/// Construct the binary name based on platform.
161
156
pub 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 ( ) }
167
158
}
168
159
169
160
/// 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