File tree Expand file tree Collapse file tree 5 files changed +10
-10
lines changed Expand file tree Collapse file tree 5 files changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ impl flags::Dist {
34
34
format ! ( "{VERSION_NIGHTLY}.{patch_version}" )
35
35
} ;
36
36
dist_server ( sh, & format ! ( "{version}-standalone" ) , & target) ?;
37
- let release_tag = if stable { date_iso ( sh) ? } else { "nightly" . to_string ( ) } ;
37
+ let release_tag = if stable { date_iso ( sh) ? } else { "nightly" . to_owned ( ) } ;
38
38
dist_client ( sh, & version, & release_tag, & target) ?;
39
39
} else {
40
40
dist_server ( sh, "0.0.0-standalone" , & target) ?;
@@ -155,11 +155,11 @@ impl Target {
155
155
Ok ( target) => target,
156
156
_ => {
157
157
if cfg ! ( target_os = "linux" ) {
158
- "x86_64-unknown-linux-gnu" . to_string ( )
158
+ "x86_64-unknown-linux-gnu" . to_owned ( )
159
159
} else if cfg ! ( target_os = "windows" ) {
160
- "x86_64-pc-windows-msvc" . to_string ( )
160
+ "x86_64-pc-windows-msvc" . to_owned ( )
161
161
} else if cfg ! ( target_os = "macos" ) {
162
- "x86_64-apple-darwin" . to_string ( )
162
+ "x86_64-apple-darwin" . to_owned ( )
163
163
} else {
164
164
panic ! ( "Unsupported OS, maybe try setting RA_TARGET" )
165
165
}
Original file line number Diff line number Diff line change @@ -129,7 +129,7 @@ impl FromStr for MeasurementType {
129
129
"webrender-2022" => Ok ( Self :: AnalyzeWebRender ) ,
130
130
"diesel-1.4.8" => Ok ( Self :: AnalyzeDiesel ) ,
131
131
"hyper-0.14.18" => Ok ( Self :: AnalyzeHyper ) ,
132
- _ => Err ( "Invalid option" . to_string ( ) ) ,
132
+ _ => Err ( "Invalid option" . to_owned ( ) ) ,
133
133
}
134
134
}
135
135
}
Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ fn fix_path_for_mac(sh: &Shell) -> anyhow::Result<()> {
50
50
51
51
[ ROOT_DIR , & home_dir]
52
52
. into_iter ( )
53
- . map ( |dir| dir. to_string ( ) + COMMON_APP_PATH )
53
+ . map ( |dir| dir. to_owned ( ) + COMMON_APP_PATH )
54
54
. map ( PathBuf :: from)
55
55
. filter ( |path| path. exists ( ) )
56
56
. collect ( )
Original file line number Diff line number Diff line change @@ -194,12 +194,12 @@ impl Host {
194
194
bail ! ( "can only collect metrics on Linux " ) ;
195
195
}
196
196
197
- let os = read_field ( sh, "/etc/os-release" , "PRETTY_NAME=" ) ?. trim_matches ( '"' ) . to_string ( ) ;
197
+ let os = read_field ( sh, "/etc/os-release" , "PRETTY_NAME=" ) ?. trim_matches ( '"' ) . to_owned ( ) ;
198
198
199
199
let cpu = read_field ( sh, "/proc/cpuinfo" , "model name" ) ?
200
200
. trim_start_matches ( ':' )
201
201
. trim ( )
202
- . to_string ( ) ;
202
+ . to_owned ( ) ;
203
203
204
204
let mem = read_field ( sh, "/proc/meminfo" , "MemTotal:" ) ?;
205
205
@@ -210,7 +210,7 @@ impl Host {
210
210
211
211
text. lines ( )
212
212
. find_map ( |it| it. strip_prefix ( field) )
213
- . map ( |it| it. trim ( ) . to_string ( ) )
213
+ . map ( |it| it. trim ( ) . to_owned ( ) )
214
214
. ok_or_else ( || format_err ! ( "can't parse {}" , path) )
215
215
}
216
216
}
Original file line number Diff line number Diff line change @@ -183,5 +183,5 @@ fn parse_title_line(s: &str) -> PrInfo {
183
183
return PrInfo { message, kind } ;
184
184
}
185
185
}
186
- PrInfo { kind : PrKind :: Other , message : Some ( s. to_string ( ) ) }
186
+ PrInfo { kind : PrKind :: Other , message : Some ( s. to_owned ( ) ) }
187
187
}
You can’t perform that action at this time.
0 commit comments