small things
This commit is contained in:
parent
3f4b24c259
commit
b189049ab4
|
@ -9,6 +9,7 @@ Checks: >
|
||||||
-cppcoreguidelines-avoid-magic-numbers,
|
-cppcoreguidelines-avoid-magic-numbers,
|
||||||
-cppcoreguidelines-owning-memory,
|
-cppcoreguidelines-owning-memory,
|
||||||
-cppcoreguidelines-pro-type-member-init,
|
-cppcoreguidelines-pro-type-member-init,
|
||||||
|
-cppcoreguidelines-pro-type-vararg,
|
||||||
-fuchsia-*,
|
-fuchsia-*,
|
||||||
-google-*,
|
-google-*,
|
||||||
-hicpp-*,
|
-hicpp-*,
|
||||||
|
|
|
@ -11,6 +11,7 @@ struct BytesToGiB {
|
||||||
u64 value;
|
u64 value;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
// 1024^3 (size of 1 GiB)
|
||||||
constexpr u64 GIB = 1'073'741'824;
|
constexpr u64 GIB = 1'073'741'824;
|
||||||
|
|
||||||
template <>
|
template <>
|
||||||
|
@ -54,7 +55,7 @@ fn main() -> i32 {
|
||||||
const Config& config = Config::getInstance();
|
const Config& config = Config::getInstance();
|
||||||
|
|
||||||
// Fetching weather information
|
// Fetching weather information
|
||||||
auto weather = config.weather.get();
|
Weather weather = config.weather.get();
|
||||||
WeatherOutput weatherInfo = weather.getWeatherInfo();
|
WeatherOutput weatherInfo = weather.getWeatherInfo();
|
||||||
|
|
||||||
// Fetching OS version
|
// Fetching OS version
|
||||||
|
|
Loading…
Reference in a new issue