You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: digest.rs
    path of file: ./repos/trow/src/registry_interface
    
    the code of the file until where you have to start completion: use std::fmt;
use std::io::Read;
use std::str::FromStr;

// We need to rename here!
use anyhow::{Error, Result};
use lazy_static::lazy_st
    
    fn sha256_digest_test() {
        let result = sha256_digest(BufReader::new("hello world".as_bytes())).unwrap();
        assert_eq!(
            result,
            "b94d27b9934d3e08a52e52d7da7dabfac484efe37a5380ee9088f7ace2efcde9"
        );
    }