From fbed1bface0b304935412692909d040102ac7449 Mon Sep 17 00:00:00 2001 From: Luke Curley Date: Sat, 24 Oct 2026 12:40:14 -0700 Subject: [PATCH] fix(auth): drop the examples' stale clock lint expectations #6298 moved the moq-auth examples from `SystemTime::now()` to `moq_clock::wall()`, so their `#[expect(clippy::disallowed_methods)]` attributes went unfulfilled and `clippy --all-targets -D warnings` fails. The PR gate builds only `--tests`, so it never linted the examples. Co-Authored-By: Claude Opus 5.5 --- rs/moq-auth/examples/asymmetric.rs | 5 ----- rs/moq-auth/examples/basic.rs | 5 ----- 2 files changed, 10 deletions(-) diff --git a/rs/moq-auth/examples/asymmetric.rs b/rs/moq-auth/examples/asymmetric.rs index dc08f9ed3ef..830080abada 100644 --- a/rs/moq-auth/examples/asymmetric.rs +++ b/rs/moq-auth/examples/asymmetric.rs @@ -4,11 +4,6 @@ // and the public key verifies them. This is the recommended approach for // production: the relay only needs the public key. -#![expect( - clippy::disallowed_methods, - reason = "`Claims` takes `SystemTime`, so the example reads the host clock" -)] - use std::time::Duration; fn main() -> anyhow::Result<()> { diff --git a/rs/moq-auth/examples/basic.rs b/rs/moq-auth/examples/basic.rs index 61981be89cc..225756a83f8 100644 --- a/rs/moq-auth/examples/basic.rs +++ b/rs/moq-auth/examples/basic.rs @@ -1,10 +1,5 @@ // cargo run --example basic -#![expect( - clippy::disallowed_methods, - reason = "`Claims` takes `SystemTime`, so the example reads the host clock" -)] - use std::time::Duration; fn main() -> anyhow::Result<()> {