DataDog / saluki

An experimental toolkit for building telemetry data planes in Rust.
Apache License 2.0
12 stars 2 forks source link

Use round() instead of round_ties_even() #226

Closed duncanpharvey closed 2 weeks ago

duncanpharvey commented 2 weeks ago

What does this PR do?

Use round() instead of round_ties_even().

Motivation

Saluki is used by thedogstatsd package in libdatadog. libdatadog can only be upgraded to Rust 1.76.0 at the moment and round_ties_even() is only stable on Rust 1.77.0 and later.

https://github.com/DataDog/libdatadog/pull/606

Additional Notes

https://doc.rust-lang.org/std/primitive.f64.html#method.round_ties_even

How to test the change?

See linked PR

duncanpharvey commented 2 weeks ago

Created by mistake, was meant to be created in the forked repo.