evaneaston / openweathermap

A client library for the free, v2.5 OpenWeatherMap.org API and a prometheus exporter, written in rust.
MIT License
2 stars 2 forks source link

Error in query.rs #8

Closed STPR closed 1 year ago

STPR commented 1 year ago

Hello, Thanks for this library 👍

There's an error in the query.rs file: https://github.com/evaneaston/openweathermap/blob/f5fe87144b377f7ab21bdfeea2a4f69cb492a492/client/src/query.rs#L20 Must be:

vec![("lat", self.lat.to_string()), ("lon", self.lon.to_string())]
evaneaston commented 1 year ago

You are right. I clearly don't rely on that variant, or have a test.

evaneaston commented 1 year ago

@STPR thanks for the bug report. I've published a fix for you.