Skip to content

Commit

Permalink
Prepare v4.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
dpc committed Oct 26, 2019
1 parent 3964100 commit 7c93a60
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/)
and this project adheres to [Semantic Versioning](http://semver.org/).

## 4.3.0 - 2019-10-25

* Add `GlobalLoggerGuard::is_canceled`

## 4.2.0 - 2019-10-16

* Update the arc-swap dependency to 0.4.
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 = "slog-scope"
version = "4.2.0"
version = "4.3.0"
authors = ["Dawid Ciężarkiewicz <dpc@dpc.pw>"]
description = "Logging scopes for slog-rs"
keywords = ["slog", "logging", "slog", "log"]
Expand Down
8 changes: 4 additions & 4 deletions lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -135,13 +135,13 @@ impl slog::Drain for NoGlobalLoggerSet {
/// This will `drop` any existing global logger.
#[must_use]
pub struct GlobalLoggerGuard {
canceled : bool,
canceled : bool,
}

impl GlobalLoggerGuard {
/// Getter for canceled to check status
pub fn get_canceled(self) -> bool {
return self.canceled;
/// Getter for canceled to check status
pub fn is_canceled(&self) -> bool {
self.canceled
}

fn new() -> Self {
Expand Down

0 comments on commit 7c93a60

Please sign in to comment.