Skip to content

Commit 7808019

Browse files
committed
lint: clippy
1 parent e0436b8 commit 7808019

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src/perms/builders.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ impl Builder {
6363
}
6464
}
6565
/// Get the sub of the builder.
66+
#[allow(clippy::missing_const_for_fn)] // false positive, non-const deref
6667
pub fn sub(&self) -> &str {
6768
&self.sub
6869
}

src/perms/config.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,17 +60,17 @@ impl SlotAuthzConfig {
6060
}
6161

6262
/// Get the chain offset in seconds.
63-
pub fn chain_offset(&self) -> u64 {
63+
pub const fn chain_offset(&self) -> u64 {
6464
self.chain_offset as u64
6565
}
6666

6767
/// Get the block query cutoff time in seconds.
68-
pub fn block_query_cutoff(&self) -> u64 {
68+
pub const fn block_query_cutoff(&self) -> u64 {
6969
self.block_query_cutoff as u64
7070
}
7171

7272
/// Get the block query start time in seconds.
73-
pub fn block_query_start(&self) -> u64 {
73+
pub const fn block_query_start(&self) -> u64 {
7474
self.block_query_start as u64
7575
}
7676
}

0 commit comments

Comments
 (0)