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: mod.rs
    path of file: ./repos/broot/src/content_type
    
    the code of the file until where you have to start completion: pub mod magic_numbers;
pub mod extensions;

use {
    std::{
        
    
pub fn is_file_binary<P: AsRef<Path>>(path: P) -> io::Result<bool> {
    if let Some(ext) = path.as_ref().extension().and_then(|s| s.to_str()) {
        if extensions::is_known_binary(ext) {
            return Ok(true);
        }
    }
    magic_numbers::is_file_known_binary(path)
}