new() returns Self

This commit is contained in:
Mahesh Asolkar 2025-05-11 20:42:11 -07:00
parent a0d19b870c
commit a2d9c768f8
Signed by: asolkar
GPG Key ID: 371CA8164433BDCC
2 changed files with 2 additions and 2 deletions

View File

@ -13,7 +13,7 @@ pub struct UnibarModuleMusic {
impl UnibarModuleMusic {
// --------------------
pub fn new(o :common::AppOptions) -> UnibarModuleMusic {
pub fn new(o :common::AppOptions) -> Self {
UnibarModuleMusic {
opts: o,
current_stdout: "".to_string(),

View File

@ -16,7 +16,7 @@ pub struct UnibarModuleWeather {
impl UnibarModuleWeather {
// --------------------
pub fn new(o :common::AppOptions) -> UnibarModuleWeather {
pub fn new(o :common::AppOptions) -> Self {
UnibarModuleWeather {
opts: o,
weather_info: json!(serde_json::Value::Null),