new() returns Self
This commit is contained in:
parent
a0d19b870c
commit
a2d9c768f8
@ -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(),
|
||||
|
@ -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),
|
||||
|
Loading…
x
Reference in New Issue
Block a user