hashsum: fix build

This commit is contained in:
Michael Gehring 2014-07-20 12:58:09 +02:00
parent 35f43126e4
commit c78ce06dc1

View file

@ -59,7 +59,7 @@ fn get_algo_opts(program: &str) -> Vec<getopts::OptGroup> {
}
}
fn detect_algo(program: &str, matches: &getopts::Matches) -> (&str, Box<Digest>) {
fn detect_algo(program: &str, matches: &getopts::Matches) -> (&'static str, Box<Digest>) {
let mut alg: Option<Box<Digest>> = None;
let mut name: &'static str = "";
match program {