File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff 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 }
Original file line number Diff line number Diff 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}
You can’t perform that action at this time.
0 commit comments