Skip to content

Commit 4e552ee

Browse files
authored
prometheus: release 0.13.2 (#457)
* ci: update linting toolchain, fix new warnings Signed-off-by: Luca BRUNO <[email protected]> * prometheus: release 0.13.2 Signed-off-by: Luca BRUNO <[email protected]> Signed-off-by: Luca BRUNO <[email protected]>
1 parent 5ca37fe commit 4e552ee

File tree

7 files changed

+11
-6
lines changed

7 files changed

+11
-6
lines changed

.github/workflows/rust.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ on:
99
env:
1010
CARGO_TERM_COLOR: always
1111
# Pinned toolchain for linting and benchmarks
12-
ACTIONS_LINTS_TOOLCHAIN: 1.53.0
12+
ACTIONS_LINTS_TOOLCHAIN: 1.63.0
1313
EXTRA_FEATURES: "protobuf push process"
1414

1515
jobs:
@@ -72,7 +72,7 @@ jobs:
7272
- name: cargo fmt (check)
7373
run: cargo fmt --all -- --check -l
7474
- name: cargo clippy
75-
run: cargo clippy --all -- -D clippy::all
75+
run: cargo clippy --all
7676
criterion:
7777
name: "Benchmarks (criterion)"
7878
runs-on: ubuntu-latest

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changelog
22

3+
## 0.13.2
4+
5+
- Bug fix: Fix compilation on 32-bit targets (#446)
6+
37
## 0.13.1
48

59
- Improvement: ProcessCollector use IntGauge to provide better performance (#430)

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ license = "Apache-2.0"
99
name = "prometheus"
1010
readme = "README.md"
1111
repository = "https://github.com/tikv/rust-prometheus"
12-
version = "0.13.1"
12+
version = "0.13.2"
1313

1414
[badges]
1515
travis-ci = { repository = "pingcap/rust-prometheus" }

src/desc.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ fn is_valid_ident<F: FnMut(char) -> bool>(input: &str, mut charset_validator: F)
2727
zeroth
2828
.and_then(|zeroth| {
2929
if charset_validator(zeroth) {
30-
Some(chars.all(|c| charset_validator(c) || c.is_digit(10)))
30+
Some(chars.all(|c| charset_validator(c) || c.is_ascii_digit()))
3131
} else {
3232
None
3333
}

src/histogram.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -516,7 +516,7 @@ impl Instant {
516516
}
517517

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

static-metric/src/auto_flush_builder.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ impl AutoFlushTokensBuilder {
196196

197197
let offset_fetchers = builder_contexts
198198
.iter()
199-
.map(|m| offset_fetcher(m))
199+
.map(offset_fetcher)
200200
.collect::<Vec<Tokens>>();
201201

202202
let delegator_tokens = if metric_type.to_string().contains("Counter") {

static-metric/src/parser.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ use syn::*;
1010

1111
/// Matches `label_enum` keyword.
1212
struct LabelEnum {
13+
#[allow(dead_code)]
1314
pub span: Span,
1415
}
1516

0 commit comments

Comments
 (0)