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: cookies.rs
    path of file: ./repos/modelfox/crates/app/core
    
    the code of the file until where you have to start completion: use std::collections::BTreeMap;

pub struct ParseCookiesError;

pub fn parse_cookies(cookies_str: &str) -> Result<BTreeMap<&str, &str>, Par
    
pub fn parse_cookies(cookies_str: &str) -> Result<BTreeMap<&str, &str>, ParseCookiesError> {
	cookies_str
		.split("; ")
		.map(|cookie| {
			let mut components = cookie.split('=');
			let key = match components.next() {
				Some(key) => key,
				None => return Err(ParseCookiesError),
			};
			let value = match components.next() {
				Some(value) => value,
				None => return Err(ParseCookiesError),
			};
			Ok((key, value))
		})
		.collect()
}