Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Arch Linux
gitlab-exporter
Commits
4ca74070
Verified
Commit
4ca74070
authored
Jun 16, 2022
by
Leonidas Spyropoulos
Browse files
chore: errors when don't implement Display trait, instead a formatter provided by std::fmt::Debug
parent
ba073512
Pipeline
#20757
passed with stages
in 2 minutes and 19 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/lib.rs
View file @
4ca74070
...
...
@@ -352,7 +352,7 @@ async fn metrics_handler() -> Result<impl Reply, Rejection> {
let
mut
buffer
=
Vec
::
new
();
if
let
Err
(
e
)
=
encoder
.encode
(
&
REGISTRY
.gather
(),
&
mut
buffer
)
{
error!
(
"could not encode custom metrics: {}"
,
e
);
error!
(
"could not encode custom metrics: {
:?
}"
,
e
);
};
let
res
=
match
String
::
from_utf8
(
buffer
.clone
())
{
Ok
(
v
)
=>
v
,
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment