Skip to content

Commit 01c2e70

Browse files
committed
Unify how a string literal is converted into a String
1 parent 6c36617 commit 01c2e70

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

glean-core/benchmark/benches/lifetime_buffering.rs

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@ pub fn delay_io_benchmark(c: &mut Criterion) {
1616
let cfg = glean_core::InternalConfiguration {
1717
upload_enabled: true,
1818
data_path,
19-
application_id: String::from("glean-bench"),
20-
language_binding_name: String::from("rust"),
19+
application_id: "glean-bench".into(),
20+
language_binding_name: "rust".into(),
2121
max_events: None,
2222
delay_ping_lifetime_io: false,
23-
app_build: String::from("1"),
23+
app_build: "1".into(),
2424
use_core_mps: true,
2525
trim_data_to_registered_pings: true,
2626
log_level: None,
@@ -58,11 +58,11 @@ pub fn delay_io_benchmark(c: &mut Criterion) {
5858
let cfg = glean_core::InternalConfiguration {
5959
upload_enabled: true,
6060
data_path,
61-
application_id: String::from("glean-bench"),
62-
language_binding_name: String::from("rust"),
61+
application_id: "glean-bench".into(),
62+
language_binding_name: "rust".into(),
6363
max_events: None,
6464
delay_ping_lifetime_io: true,
65-
app_build: String::from("1"),
65+
app_build: "1".into(),
6666
use_core_mps: true,
6767
trim_data_to_registered_pings: true,
6868
log_level: None,
@@ -100,11 +100,11 @@ pub fn delay_io_benchmark(c: &mut Criterion) {
100100
let cfg = glean_core::InternalConfiguration {
101101
upload_enabled: true,
102102
data_path,
103-
application_id: String::from("glean-bench"),
104-
language_binding_name: String::from("rust"),
103+
application_id: "glean-bench".into(),
104+
language_binding_name: "rust".into(),
105105
max_events: None,
106106
delay_ping_lifetime_io: true,
107-
app_build: String::from("1"),
107+
app_build: "1".into(),
108108
use_core_mps: true,
109109
trim_data_to_registered_pings: true,
110110
log_level: None,

0 commit comments

Comments
 (0)