From a4b3c8455d5d23309ca14e74fe52455318505758 Mon Sep 17 00:00:00 2001 From: Dabo Ross Date: Thu, 16 Apr 2015 22:01:29 -0700 Subject: [PATCH] Update for rustc version 1.0.0-beta.2 and release fern version 0.3.4 - Remove all stability attributes, as rustc now warns for them. --- .travis.yml | 2 +- Cargo.toml | 2 +- src/api.rs | 2 -- src/config.rs | 1 - src/errors.rs | 3 --- src/loggers.rs | 1 - 6 files changed, 2 insertions(+), 9 deletions(-) diff --git a/.travis.yml b/.travis.yml index c4027df..a7ce57c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,5 +1,5 @@ language: rust sudo: false rust: -- 1.0.0-beta +- 1.0.0-beta2 - nightly diff --git a/Cargo.toml b/Cargo.toml index 1198520..bc42297 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "fern" -version = "0.3.4-dev" +version = "0.3.4" authors = ["Dabo Ross "] description = "Fern is a simple runtime-configurable logging library" diff --git a/src/api.rs b/src/api.rs index 0b5b40c..3697bb8 100644 --- a/src/api.rs +++ b/src/api.rs @@ -4,10 +4,8 @@ use errors::LogError; /// Basic fern logger trait. Something you can send messages to. We have a separate trait from /// log::Log, because we want errors to propagate upwards and only print in the outermost logger. -#[unstable] pub trait Logger: Sync + Send { /// Logs a given message in this logger. - #[unstable] fn log(&self, msg: &str, level: &log::LogLevel, location: &log::LogLocation) -> Result<(), LogError>; } diff --git a/src/config.rs b/src/config.rs index 05878a7..76e9ac8 100644 --- a/src/config.rs +++ b/src/config.rs @@ -1,4 +1,3 @@ -#![unstable] use std::convert::AsRef; use std::io; use std::fs; diff --git a/src/errors.rs b/src/errors.rs index 031e451..7f43494 100644 --- a/src/errors.rs +++ b/src/errors.rs @@ -1,4 +1,3 @@ -#![unstable] use std::io; use std::sync; use std::error; @@ -44,7 +43,6 @@ impl error::Error for LogError { } } -#[stable] impl fmt::Display for LogError { fn fmt(&self, f: &mut fmt::Formatter) -> Result<(), fmt::Error> { match self { @@ -76,7 +74,6 @@ impl convert::From for InitError { } } -#[stable] impl fmt::Display for InitError { fn fmt(&self, f: &mut fmt::Formatter) -> Result<(), fmt::Error> { match self { diff --git a/src/loggers.rs b/src/loggers.rs index a3669aa..1123622 100644 --- a/src/loggers.rs +++ b/src/loggers.rs @@ -122,7 +122,6 @@ impl log::Log for WriterLogger { } /// A logger implementation which does nothing with logged messages. -#[unstable] #[derive(Clone, Copy)] pub struct NullLogger;