Skip to content

Commit

Permalink
misc
Browse files Browse the repository at this point in the history
  • Loading branch information
magnusmanske committed Feb 18, 2025
1 parent f90f401 commit 7bbdf31
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/datasource_database.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1373,6 +1373,6 @@ mod tests {
("project", "wikipedia"),
];
let result = simulate_category_query(params).await.unwrap();
assert!(result.len() > 0);
assert!(!result.is_empty());
}
}
2 changes: 1 addition & 1 deletion src/pagelist.rs
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ impl PageList {
}

pub fn get_entry(&self, entry: &PageListEntry) -> Option<PageListEntry> {
self.entries.read().ok()?.get(entry).map(|e| e.clone())
self.entries.read().ok()?.get(entry).cloned()
}

pub fn to_titles_namespaces(&self) -> Vec<(String, NamespaceID)> {
Expand Down

0 comments on commit 7bbdf31

Please sign in to comment.