Skip to content

Commit

Permalink
[0.15.10] Minor code and docu maintenance.
Browse files Browse the repository at this point in the history
  • Loading branch information
emabee committed Jul 22, 2020
1 parent 3767777 commit 45eddda
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) and this
project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [0.15.10] - 2020-07-22

Minor code maintenance.

## [0.15.9] - 2020-07-21

Allow using the log target with fantasy names, like with `env_logger`.
Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "flexi_logger"
version = "0.15.9"
version = "0.15.10"
authors = ["emabee <[email protected]>"]
edition = "2018"
license = "MIT OR Apache-2.0"
Expand Down
6 changes: 6 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,12 @@
//! `flexi_logger` uses a similar syntax as [`env_logger`](http://crates.io/crates/env_logger/)
//! for specifying which logs should really be written (but is more graceful with the syntax,
//! and can provide error information).
//!
//! By default, i.e. if feature `colors` is not switched off, the log lines that appear on your
//! terminal are coloured. In case the chosen colors don't fit to your terminal's color theme,
//! you can adapt the colors to improve readability.
//! See the documentation of method [style](fn.style.html)
//! for a description how this can be done.
mod deferred_now;
mod flexi_error;
Expand Down
2 changes: 1 addition & 1 deletion src/log_specification.rs
Original file line number Diff line number Diff line change
Expand Up @@ -407,7 +407,7 @@ fn parse_level_filter<S: AsRef<str>>(s: S) -> Result<LevelFilter, FlexiLoggerErr
}

fn contains_whitespace(s: &str, parse_errs: &mut String) -> bool {
let result = s.chars().any(|c| c.is_whitespace());
let result = s.chars().any(char::is_whitespace);
if result {
push_err(
&format!(
Expand Down

0 comments on commit 45eddda

Please sign in to comment.