new() returns Self
This commit is contained in:
parent
a0d19b870c
commit
a2d9c768f8
@ -13,7 +13,7 @@ pub struct UnibarModuleMusic {
|
|||||||
|
|
||||||
impl UnibarModuleMusic {
|
impl UnibarModuleMusic {
|
||||||
// --------------------
|
// --------------------
|
||||||
pub fn new(o :common::AppOptions) -> UnibarModuleMusic {
|
pub fn new(o :common::AppOptions) -> Self {
|
||||||
UnibarModuleMusic {
|
UnibarModuleMusic {
|
||||||
opts: o,
|
opts: o,
|
||||||
current_stdout: "".to_string(),
|
current_stdout: "".to_string(),
|
||||||
|
@ -16,7 +16,7 @@ pub struct UnibarModuleWeather {
|
|||||||
impl UnibarModuleWeather {
|
impl UnibarModuleWeather {
|
||||||
|
|
||||||
// --------------------
|
// --------------------
|
||||||
pub fn new(o :common::AppOptions) -> UnibarModuleWeather {
|
pub fn new(o :common::AppOptions) -> Self {
|
||||||
UnibarModuleWeather {
|
UnibarModuleWeather {
|
||||||
opts: o,
|
opts: o,
|
||||||
weather_info: json!(serde_json::Value::Null),
|
weather_info: json!(serde_json::Value::Null),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user