pub fn parse_default_directive(directive: &str) -> Result<Directive, String> {
	let dir = directive
		.parse()
		.map_err(|_| format!("Unable to parse directive: {}", directive))?;
	add_default_directives(directive);
	Ok(dir)
}
/// Parse `Directive` and add to default directives if successful. 
///
/// Ensures the supplied directive will be restored when resetting the log filter.
Parse `Directive` and add to default directives if successful.
Ensures the supplied directive will be restored when resetting the log filter.
Parse ` Directive ` and add to default directives if successful . Ensures the supplied directive will be restored when resetting the log filter .
pub fn parse_default_directive(directive: &str) -> Result<Directive, String> {
	let dir = directive
		.parse()
		.map_err(|_| format!("Unable to parse directive: {}", directive))?;
	add_default_directives(directive);
	Ok(dir)
}
pub fn parse_default_directive ( directive : & str ) -> Result < Directive , String > { let dir = directive . parse ( ) . map_err ( | _ | format ! ( " " directive ) ) ? ; add_default_directives ( directive ) ; Ok ( dir ) }
Parse `Directive` and add to default directives if successful.
Parse ` Directive ` and add to default directives if successful .
directive
&str
directive
&str