Skip to content

Commit

Permalink
Silence last warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
carlini committed Mar 8, 2022
1 parent fc1bd78 commit 50b25c4
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ use std::io::Read;
use std::io::BufReader;
use std::fs::File;
use std::io::prelude::*;
use std::convert::TryInto;
use std::cmp::Reverse;

extern crate filebuffer;
Expand Down Expand Up @@ -230,7 +229,7 @@ fn make_table(path: std::string::String,
}

/* Get the next word from the suffix table. */
fn get_next_pointer_from_table_canfail(mut tablestream:&mut TableStream) -> u64 {
fn get_next_pointer_from_table_canfail(tablestream:&mut TableStream) -> u64 {
let ok = tablestream.file.read_exact(&mut tablestream.cache[..tablestream.size_width]);
let bad = match ok {
Ok(_) => false,
Expand All @@ -244,7 +243,7 @@ fn get_next_pointer_from_table_canfail(mut tablestream:&mut TableStream) -> u64
}


fn get_next_pointer_from_table(mut tablestream:&mut TableStream) -> u64 {
fn get_next_pointer_from_table(tablestream:&mut TableStream) -> u64 {
let r = get_next_pointer_from_table_canfail(tablestream);
if r == std::u64::MAX {
panic!("Reached EOF badly");
Expand Down

0 comments on commit 50b25c4

Please sign in to comment.