fn parse_target(s: &str) -> (String, Level) {
	match s.find('=') {
		Some(i) => {
			let target = s[0..i].to_string();
			if s.len() > i {
				let level = s[i + 1..s.len()].parse::<Level>().unwrap_or(Level::TRACE);
				(target, level)
			} else {
				(target, Level::TRACE)
			}
		}
		None => (s.to_string(), Level::TRACE)
	}
}
// Default to TRACE if no level given or unable to parse Level
// We do not support a global `Level` currently
Default to TRACE if no level given or unable to parse Level
We do not support a global `Level` currently
Default to TRACE if no level given or unable to parse Level We do not support a global ` Level ` currently
fn parse_target(s: &str) -> (String, Level) {
	match s.find('=') {
		Some(i) => {
			let target = s[0..i].to_string();
			if s.len() > i {
				let level = s[i + 1..s.len()].parse::<Level>().unwrap_or(Level::TRACE);
				(target, level)
			} else {
				(target, Level::TRACE)
			}
		}
		None => (s.to_string(), Level::TRACE)
	}
}
fn parse_target ( s : & str ) -> ( String , Level ) { match s . find ( '=' ) { Some ( i ) => { let target = s [ 0 .. i ] . to_string ( ) ; if s . len ( ) > i { let level = s [ i + 1 .. s . len ( ) ] . parse :: < Level > ( ) . unwrap_or ( Level :: TRACE ) ; ( target , level ) } else { ( target , Level :: TRACE ) } } None => ( s . to_string ( ) , Level :: TRACE ) } }
Default to TRACE if no level given or unable to parse Level
We do not support a global `Level` currently
Default to TRACE if no level given or unable to parse Level We do not support a global ` Level ` currently
s
&str
s
&str