aboutsummaryrefslogtreecommitdiffstats
path: root/src/view.rs
diff options
context:
space:
mode:
authorJames Campos <james.r.campos@gmail.com>2020-09-23 22:41:49 -0700
committerJames Campos <james.r.campos@gmail.com>2020-09-23 22:41:49 -0700
commite5b2e71b01aa48cb68f85826d2fa8cdad3e8f014 (patch)
tree60a4d910aa11470dbfa6e960549dff628e677d36 /src/view.rs
parentf00e1cc8f8568df9ae8e802f9250a36baa911570 (diff)
downloadbk-e5b2e71b01aa48cb68f85826d2fa8cdad3e8f014.tar.gz
fragment
Diffstat (limited to 'src/view.rs')
-rw-r--r--src/view.rs2
1 files changed, 1 insertions, 1 deletions
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));
}