Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

prometheus: release 0.13.2 #457

Merged
merged 2 commits into from
Sep 8, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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