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: fs.rs
    path of file: ./repos/erdtree/src/icons
    
    the code of the file until where you have to start completion: use ansi_term::{ANSIGenericString, Style};
use ignore::DirEntry;
use std::{borrow::Cow, path::Path};

/// Computes a plain, colorless icon with given parameters.
///
/// Th
    
pub fn compute(entry: &DirEntry, link_target: Option<&Path>) -> Cow<'static, str> {
    let icon = entry
        .file_type()
        .and_then(super::icon_from_file_type)
        .map(Cow::from);

    if let Some(i) = icon {
        return i;
    }

    let ext = match link_target {
        Some(target) if entry.path_is_symlink() => target.extension(),
        _ => entry.path().extension(),
    };

    let icon = ext
        .and_then(super::icon_from_ext)
        .map(|(_, i)| Cow::from(i));

    if let Some(i) = icon {
        return i;
    }

    let icon = super::icon_from_file_name(entry.file_name()).map(Cow::from);

    if let Some(i) = icon {
        return i;
    }

    Cow::from(super::get_default_icon().1)
}