Skip to content

Commit 502924d

Browse files
committed
Fix pre-existing clippy errors in buck2_query and starlark
- Remove redundant `v as u32` cast in deps() where v is already u32 - Suppress extra_unused_type_parameters on DeserTypeId::of<T>() stub (T is needed for API compatibility but unused in the non-pagable stub) Made-with: Cursor
1 parent 93917d7 commit 502924d

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

app/buck2_query/src/query/environment.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -395,7 +395,7 @@ pub async fn deps<Env: QueryEnvironment + ?Sized>(
395395

396396
match depth {
397397
QueryValueDepth::Bounded(v) => {
398-
env.depth_limited_traversal(targets, visitor, visit, v as u32)
398+
env.depth_limited_traversal(targets, visitor, visit, v)
399399
.await?;
400400
}
401401
QueryValueDepth::Unbounded => {

starlark-rust/starlark/src/pagable.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ pub(crate) struct DeserTypeId;
4444

4545
#[cfg(not(feature = "pagable"))]
4646
impl DeserTypeId {
47+
#[allow(clippy::extra_unused_type_parameters)]
4748
pub const fn of<T: ?Sized>() -> Self {
4849
DeserTypeId
4950
}

0 commit comments

Comments
 (0)