Provide header-rebuilder helper

This commit is contained in:
Matthias Beyer 2016-01-02 19:07:27 +01:00
parent 9227c4bb9a
commit 1bccf067bf

View file

@ -57,3 +57,8 @@ pub fn get_name_from_header(header: &FHD) -> String {
headerhelpers::data::get_name_from_header(header).unwrap_or(String::from("")) headerhelpers::data::get_name_from_header(header).unwrap_or(String::from(""))
} }
pub fn rebuild_header_with_tags(header: &FHD, tags: Vec<String>) -> Option<FHD> {
let name = get_name_from_header(header);
Some(build_header(name, tags))
}