Skip to content

Commit 451cef3

Browse files
goffrieConvex, Inc.
authored andcommitted
Upgrade Rust to 2024-12-16 (#32566)
GitOrigin-RevId: 003a15e6970b7caba6ac6fdf5ad4121fddc8ba74
1 parent 0a1d183 commit 451cef3

File tree

95 files changed

+132
-202
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

95 files changed

+132
-202
lines changed

crates/application/src/application_function_runner/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -526,7 +526,7 @@ struct RequestGuard<'a> {
526526
permit: Option<SemaphorePermit<'a>>,
527527
}
528528

529-
impl<'a> RequestGuard<'a> {
529+
impl RequestGuard<'_> {
530530
async fn acquire_permit(&mut self) -> anyhow::Result<()> {
531531
let timer = function_waiter_timer(self.limiter.udf_type);
532532
assert!(
@@ -541,7 +541,7 @@ impl<'a> RequestGuard<'a> {
541541
}
542542
}
543543

544-
impl<'a> Drop for RequestGuard<'a> {
544+
impl Drop for RequestGuard<'_> {
545545
fn drop(&mut self) {
546546
// Drop the semaphore permit before updating gauges.
547547
drop(self.permit.take());

crates/application/src/cache/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -584,7 +584,7 @@ impl<'a> WaitingEntryGuard<'a> {
584584
}
585585
}
586586

587-
impl<'a> Drop for WaitingEntryGuard<'a> {
587+
impl Drop for WaitingEntryGuard<'_> {
588588
fn drop(&mut self) {
589589
// Remove the cache entry from the cache if still present.
590590
if let Some(entry_id) = self.entry_id {

crates/application/src/deploy_config.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -615,7 +615,7 @@ impl<'a, RT: Runtime> ApplicationInitializerEvaluator<'a, RT> {
615615
}
616616

617617
#[async_trait]
618-
impl<'a, RT: Runtime> InitializerEvaluator for ApplicationInitializerEvaluator<'a, RT> {
618+
impl<RT: Runtime> InitializerEvaluator for ApplicationInitializerEvaluator<'_, RT> {
619619
async fn evaluate(
620620
&self,
621621
path: ComponentDefinitionPath,

crates/application/src/function_log.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1521,7 +1521,7 @@ impl<RT: Runtime> Inner<RT> {
15211521
static LAST_LOGGED_ERROR: Cell<Option<SystemTime>> = const { Cell::new(None) };
15221522
}
15231523
let now = SystemTime::now();
1524-
let should_log = LAST_LOGGED_ERROR.get().map_or(true, |last_logged| {
1524+
let should_log = LAST_LOGGED_ERROR.get().is_none_or(|last_logged| {
15251525
now.duration_since(last_logged).unwrap_or(Duration::ZERO) >= Duration::from_secs(10)
15261526
});
15271527
if !should_log {

crates/application/src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
#![feature(try_blocks)]
2-
#![feature(lazy_cell)]
32
#![feature(iterator_try_collect)]
43
#![feature(let_chains)]
54
#![feature(coroutines)]

crates/application/src/snapshot_import/parse.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -456,7 +456,7 @@ async fn parse_documents_jsonl<'a, R: TokioAsyncRead + Unpin>(
456456
}
457457
}
458458

459-
async fn parse_generated_schema<'a, T: ShapeConfig, R: AsyncRead + Unpin>(
459+
async fn parse_generated_schema<T: ShapeConfig, R: AsyncRead + Unpin>(
460460
filename: &str,
461461
mut entry_reader: BufReader<R>,
462462
) -> anyhow::Result<GeneratedSchema<T>> {

crates/application/src/snapshot_import/schema_constraints.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ use value::{
2525
/// 2. import does not touch table "bar".
2626
/// 3. "bar" has a foreign reference to "foo", validated by schema.
2727
/// 4. when the import commits, "bar" is nonempty.
28+
///
2829
/// To prevent this case we throw an error if a schema'd table outside the
2930
/// import is nonempty and points into the import, and the import changes the
3031
/// table number.

crates/async_lru/src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
#![feature(let_chains)]
2-
#![feature(lazy_cell)]
32
pub mod async_lru;
43
mod metrics;

crates/authentication/src/lib.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
#![feature(lazy_cell)]
21
use std::{
32
str::FromStr,
43
sync::LazyLock,
@@ -62,8 +61,6 @@ const CONFIG_URL_SUFFIX: &str = ".well-known/jwks.json";
6261
/// and not user-facing. These API access tokens are constructed from multiple
6362
/// clients (eg dashboard/cli)
6463
pub const CONVEX_CONSOLE_API_AUDIENCE: &str = "https://console.convex.dev/api/";
65-
/// Scopes required for an access token to be considered valid.
66-
/// Not really used meaningfully yet, but might be in the future.
6764

6865
/// Extract the bearer token from an `Authorization: Bearer` header.
6966
pub async fn extract_bearer_token(header: Option<String>) -> anyhow::Result<Option<String>> {

crates/cmd_util/src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
1-
#![feature(lazy_cell)]
21
pub mod env;
32
pub mod keyvalue;

0 commit comments

Comments
 (0)