Skip to content

Commit

Permalink
prometheus: release 0.13.2 (#457)
Browse files Browse the repository at this point in the history
* ci: update linting toolchain, fix new warnings

Signed-off-by: Luca BRUNO <luca.bruno@coreos.com>

* prometheus: release 0.13.2

Signed-off-by: Luca BRUNO <luca.bruno@coreos.com>

Signed-off-by: Luca BRUNO <luca.bruno@coreos.com>
  • Loading branch information
lucab committed Sep 8, 2022
1 parent 5ca37fe commit 4e552ee
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:
env:
CARGO_TERM_COLOR: always
# Pinned toolchain for linting and benchmarks
ACTIONS_LINTS_TOOLCHAIN: 1.53.0
ACTIONS_LINTS_TOOLCHAIN: 1.63.0
EXTRA_FEATURES: "protobuf push process"

jobs:
Expand Down Expand Up @@ -72,7 +72,7 @@ jobs:
- name: cargo fmt (check)
run: cargo fmt --all -- --check -l
- name: cargo clippy
run: cargo clippy --all -- -D clippy::all
run: cargo clippy --all
criterion:
name: "Benchmarks (criterion)"
runs-on: ubuntu-latest
Expand Down
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## 0.13.2

- Bug fix: Fix compilation on 32-bit targets (#446)

## 0.13.1

- Improvement: ProcessCollector use IntGauge to provide better performance (#430)
Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ license = "Apache-2.0"
name = "prometheus"
readme = "README.md"
repository = "https://github.com/tikv/rust-prometheus"
version = "0.13.1"
version = "0.13.2"

[badges]
travis-ci = { repository = "pingcap/rust-prometheus" }
Expand Down
2 changes: 1 addition & 1 deletion src/desc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ fn is_valid_ident<F: FnMut(char) -> bool>(input: &str, mut charset_validator: F)
zeroth
.and_then(|zeroth| {
if charset_validator(zeroth) {
Some(chars.all(|c| charset_validator(c) || c.is_digit(10)))
Some(chars.all(|c| charset_validator(c) || c.is_ascii_digit()))
} else {
None
}
Expand Down
2 changes: 1 addition & 1 deletion src/histogram.rs
Original file line number Diff line number Diff line change
Expand Up @@ -516,7 +516,7 @@ impl Instant {
}

pub fn elapsed(&self) -> Duration {
match &*self {
match self {
// We use `saturating_duration_since` to avoid panics caused by non-monotonic clocks.
Instant::Monotonic(i) => StdInstant::now().saturating_duration_since(*i),

Expand Down
2 changes: 1 addition & 1 deletion static-metric/src/auto_flush_builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ impl AutoFlushTokensBuilder {

let offset_fetchers = builder_contexts
.iter()
.map(|m| offset_fetcher(m))
.map(offset_fetcher)
.collect::<Vec<Tokens>>();

let delegator_tokens = if metric_type.to_string().contains("Counter") {
Expand Down
1 change: 1 addition & 0 deletions static-metric/src/parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ use syn::*;

/// Matches `label_enum` keyword.
struct LabelEnum {
#[allow(dead_code)]
pub span: Span,
}

Expand Down

0 comments on commit 4e552ee

Please sign in to comment.