зеркало из https://github.com/mozilla/glean.git
Address beta warnings
This commit is contained in:
Родитель
17f5e8ca16
Коммит
46017fb704
|
@ -1,4 +1,5 @@
|
|||
[workspace]
|
||||
resolver = "2"
|
||||
|
||||
members = [
|
||||
"glean-core",
|
||||
|
|
|
@ -1080,7 +1080,7 @@ mod test {
|
|||
let metric_id_pattern = "telemetry_test.single_metric";
|
||||
|
||||
// Write sample metrics to the database.
|
||||
let lifetimes = vec![Lifetime::User, Lifetime::Ping, Lifetime::Application];
|
||||
let lifetimes = [Lifetime::User, Lifetime::Ping, Lifetime::Application];
|
||||
|
||||
for lifetime in lifetimes.iter() {
|
||||
for value in &["retain", "delete"] {
|
||||
|
|
|
@ -894,7 +894,7 @@ mod test {
|
|||
},
|
||||
execution_counter: None,
|
||||
};
|
||||
let timestamps = vec![20, 40, 200];
|
||||
let timestamps = [20, 40, 200];
|
||||
let not_glean_restarted = StoredEvent {
|
||||
event: RecordedEvent {
|
||||
timestamp: timestamps[0],
|
||||
|
@ -970,8 +970,8 @@ mod test {
|
|||
|
||||
// This scenario represents a run of three events followed by an hour between runs,
|
||||
// followed by one final event.
|
||||
let timestamps = vec![20, 40, 200, 12];
|
||||
let ecs = vec![0, 1];
|
||||
let timestamps = [20, 40, 200, 12];
|
||||
let ecs = [0, 1];
|
||||
let some_hour = 16;
|
||||
let startup_date = FixedOffset::east(0)
|
||||
.ymd(2022, 11, 24)
|
||||
|
@ -1095,8 +1095,8 @@ mod test {
|
|||
|
||||
// This scenario represents a run of two events followed by negative one hours between runs,
|
||||
// followed by two more events.
|
||||
let timestamps = vec![20, 40, 12, 200];
|
||||
let ecs = vec![0, 1];
|
||||
let timestamps = [20, 40, 12, 200];
|
||||
let ecs = [0, 1];
|
||||
let some_hour = 10;
|
||||
let startup_date = FixedOffset::east(0)
|
||||
.ymd(2022, 11, 25)
|
||||
|
|
|
@ -136,7 +136,7 @@ fn snapshot_correctly_clears_the_stores() {
|
|||
let snapshot2 = glean
|
||||
.event_storage()
|
||||
.snapshot_as_json(&glean, "store2", false);
|
||||
for s in vec![snapshot, snapshot2] {
|
||||
for s in [snapshot, snapshot2] {
|
||||
assert!(s.is_some());
|
||||
let s = s.unwrap();
|
||||
assert_eq!(1, s.as_array().unwrap().len());
|
||||
|
|
Загрузка…
Ссылка в новой задаче