Skip to content

Commit

Permalink
Update for rustc version 1.0.0-beta.2 and release fern version 0.3.4
Browse files Browse the repository at this point in the history
- Remove all stability attributes, as rustc now warns for them.
  • Loading branch information
daboross committed Apr 17, 2015
1 parent 981a752 commit a4b3c84
Show file tree
Hide file tree
Showing 6 changed files with 2 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
language: rust
sudo: false
rust:
- 1.0.0-beta
- 1.0.0-beta2
- nightly
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]

name = "fern"
version = "0.3.4-dev"
version = "0.3.4"
authors = ["Dabo Ross <[email protected]>"]
description = "Fern is a simple runtime-configurable logging library"

Expand Down
2 changes: 0 additions & 2 deletions src/api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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>;
}
Expand Down
1 change: 0 additions & 1 deletion src/config.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#![unstable]
use std::convert::AsRef;
use std::io;
use std::fs;
Expand Down
3 changes: 0 additions & 3 deletions src/errors.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#![unstable]
use std::io;
use std::sync;
use std::error;
Expand Down Expand Up @@ -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 {
Expand Down Expand Up @@ -76,7 +74,6 @@ impl convert::From<log::SetLoggerError> for InitError {
}
}

#[stable]
impl fmt::Display for InitError {
fn fmt(&self, f: &mut fmt::Formatter) -> Result<(), fmt::Error> {
match self {
Expand Down
1 change: 0 additions & 1 deletion src/loggers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,6 @@ impl <T: io::Write + Send> log::Log for WriterLogger<T> {
}

/// A logger implementation which does nothing with logged messages.
#[unstable]
#[derive(Clone, Copy)]
pub struct NullLogger;

Expand Down

0 comments on commit a4b3c84

Please sign in to comment.