Skip to content

Commit 7b65a4b

Browse files
clippy - simplified invocation of cantor_pair.
1 parent c623662 commit 7b65a4b

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

src/pages/search/mod.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@ use crate::pages::AddQuery;
1515

1616
#[cfg(feature = "ssr")]
1717
use crate::pages::GLOBAL_STATE;
18-
#[cfg(feature = "ssr")]
19-
use crate::util::cantor_pair;
2018
pub mod view;
2119

2220
// Search Result Element
@@ -53,7 +51,6 @@ pub async fn update_query(aq: AddQuery) -> Result<(), ServerFnError> {
5351
// get_query get the result of the last query
5452
// ie get a list of images.
5553
#[server]
56-
#[cfg_attr(feature = "ssr", tracing::instrument)]
5754
pub async fn get_query() -> Result<SearchResult, ServerFnError> {
5855
use crate::pages::IMAGE_PREFIX;
5956

@@ -64,7 +61,7 @@ pub async fn get_query() -> Result<SearchResult, ServerFnError> {
6461
.iter()
6562
.enumerate()
6663
.map(|(i, path_rank)| {
67-
let key = cantor_pair(state.query_version, i);
64+
let key = crate::util::cantor_pair(state.query_version, i);
6865

6966
// Construct URL from filename
7067
let url = path_rank

0 commit comments

Comments
 (0)