浏览代码

Fix feature names (again)

Sam Clements 3 年之前
父节点
当前提交
cd230e82ae
共有 3 个文件被更改,包括 6 次插入6 次删除
  1. 1 1
      Cargo.toml
  2. 4 4
      README.md
  3. 1 1
      src/lib.rs

+ 1 - 1
Cargo.toml

@@ -9,7 +9,7 @@ edition = "2018"
 
 [features]
 default = ["colored", "chrono"]
-color = ["colored"]
+colors = ["colored"]
 timestamps = ["chrono"]
 
 [dependencies]

+ 4 - 4
README.md

@@ -34,7 +34,7 @@ cargo run --example init
 ```
 
 Coloured output and timestamps will be enabled by default. You can remove these
-features and their respective dependencies by disabling all features in your 
+features and their respective dependencies by disabling all features in your
 `Cargo.toml`.
 
 ```
@@ -42,7 +42,7 @@ features and their respective dependencies by disabling all features in your
 default-features = false
 ```
 
-To include the `timestamps` feature, but not the `color` feature:
+To include the `timestamps` feature, but not the `colors` feature:
 
 ```
 [dependencies.simple_logger]
@@ -50,12 +50,12 @@ default-features = false
 features = ["timestamps"]
 ```
 
-To include the `color` feature, but not the `timestamps` feature:
+To include the `colors` feature, but not the `timestamps` feature:
 
 ```
 [dependencies.simple_logger]
 default-features = false
-features = ["color"]
+features = ["colors"]
 ```
 
 Licence

+ 1 - 1
src/lib.rs

@@ -436,7 +436,7 @@ mod test {
     }
 
     #[test]
-    #[cfg(feature = "color")]
+    #[cfg(feature = "colored")]
     fn test_with_colors() {
         let mut builder = SimpleLogger::new();
         assert!(builder.colors == true);