From e5b2e71b01aa48cb68f85826d2fa8cdad3e8f014 Mon Sep 17 00:00:00 2001 From: James Campos Date: Wed, 23 Sep 2020 22:41:49 -0700 Subject: fragment --- src/view.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/view.rs') diff --git a/src/view.rs b/src/view.rs index 7593eea..2f0ecfc 100644 --- a/src/view.rs +++ b/src/view.rs @@ -244,7 +244,7 @@ impl View for Page { if let Ok(i) = r { let url = &c.links[i].2; - let &(chapter, byte) = bk.links.get(url).expect(url); + let &(chapter, byte) = bk.links.get(url).unwrap(); let line = get_line(&bk.chapters[chapter].lines, byte); bk.jump((chapter, line)); } -- cgit v1.2.3