Skip to content

Commit

Permalink
fix: fix fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
francis-du committed Jan 20, 2021
1 parent c1dbfd1 commit 2075d79
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/handler/get_handle.rs
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,9 @@ pub async fn search(req: Request<()>) -> tide::Result {
for res in results {
let page = wiki.page_from_title(res.to_string());
let title = page.get_title().unwrap();
let links_iter = page.get_links().unwrap()
let links_iter = page
.get_links()
.unwrap()
.filter(|x| x.title.clone().contains(words.clone()));

let id = match page.get_pageid().unwrap().parse::<u32>() {
Expand Down

0 comments on commit 2075d79

Please sign in to comment.