Skip to content

Commit 9256c89

Browse files
committed
lint: clippy
1 parent 43f4e53 commit 9256c89

File tree

1 file changed

+2
-2
lines changed
  • crates/rpc/src/inspect

1 file changed

+2
-2
lines changed

crates/rpc/src/inspect/db.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ impl DbArgs {
3939
}
4040

4141
/// Get the skip value.
42-
pub(crate) fn skip(&self) -> usize {
42+
pub(crate) const fn skip(&self) -> usize {
4343
self.1
4444
}
4545

@@ -104,7 +104,7 @@ impl<N: Pnt> TableViewer<()> for ListTableViewer<'_, '_, N> {
104104

105105
self.factory.db_ref().view(|tx| {
106106
let table_db =
107-
tx.inner.open_db(Some(&self.args.table_name())).wrap_err("Could not open db.")?;
107+
tx.inner.open_db(Some(self.args.table_name())).wrap_err("Could not open db.")?;
108108
let stats = tx
109109
.inner
110110
.db_stat(&table_db)

0 commit comments

Comments
 (0)