Skip to content

Commit

Permalink
Address beta warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
badboy committed Jul 12, 2023
1 parent 17f5e8c commit 46017fb
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 7 deletions.
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
[workspace]
resolver = "2"

members = [
"glean-core",
Expand Down
2 changes: 1 addition & 1 deletion glean-core/src/database/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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"] {
Expand Down
10 changes: 5 additions & 5 deletions glean-core/src/event_database/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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],
Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion glean-core/tests/event.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down

0 comments on commit 46017fb

Please sign in to comment.