Skip to content

Commit e4d069b

Browse files
committed
Replace once_cell with the standard library equivalent
1 parent d114212 commit e4d069b

File tree

3 files changed

+2
-4
lines changed

3 files changed

+2
-4
lines changed

Cargo.lock

Lines changed: 0 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ uuid = { version = "0.8", features = ["v4", "serde"] }
2626
tracing = "0.1"
2727
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
2828
url = "2.1.0"
29-
once_cell = "1"
3029
chrono = { version = "0.4.38", features = ["serde"] }
3130
tokio-postgres = { version = "0.7.2", features = ["with-chrono-0_4", "with-serde_json-1", "with-uuid-0_8"] }
3231
postgres-native-tls = "0.5.0"

src/github.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@ use hyper::header::HeaderValue;
77
use octocrab::params::pulls::Sort;
88
use octocrab::params::{Direction, State};
99
use octocrab::Octocrab;
10-
use once_cell::sync::OnceCell;
1110
use regex::Regex;
1211
use reqwest::header::{AUTHORIZATION, USER_AGENT};
1312
use reqwest::{Client, Request, RequestBuilder, Response, StatusCode};
1413
use std::collections::{HashMap, HashSet};
14+
use std::sync::OnceLock;
1515
use std::{
1616
fmt,
1717
time::{Duration, SystemTime},
@@ -376,7 +376,7 @@ pub struct Issue {
376376
/// Note that this is constructed via the [`Issue::repository`] method.
377377
/// It is not deserialized from the GitHub API.
378378
#[serde(skip)]
379-
pub repository: OnceCell<IssueRepository>,
379+
pub repository: OnceLock<IssueRepository>,
380380

381381
/// The base commit for a PR (the branch of the destination repo).
382382
#[serde(default)]

0 commit comments

Comments
 (0)