fix: compilation error on greeter bin
This commit is contained in:
parent
b9587deadb
commit
bbf553e284
1 changed files with 3 additions and 3 deletions
|
|
@ -77,8 +77,8 @@ async fn user_data_dbus() -> Result<Vec<UserData>, Box<dyn Error>> {
|
||||||
Ok(user_datas)
|
Ok(user_datas)
|
||||||
}
|
}
|
||||||
|
|
||||||
fn user_data_fallback() -> Vec<UserData> {
|
async fn user_data_fallback() -> Vec<UserData> {
|
||||||
let user_filter = UserFilter::new();
|
let user_filter = UserFilter::new().await;
|
||||||
|
|
||||||
// The pwd::Passwd method is unsafe (but not labelled as such) due to using global state (libc pwent functions).
|
// The pwd::Passwd method is unsafe (but not labelled as such) due to using global state (libc pwent functions).
|
||||||
/* unsafe */
|
/* unsafe */
|
||||||
|
|
@ -130,7 +130,7 @@ pub fn main() -> Result<(), Box<dyn Error>> {
|
||||||
Ok(ok) => ok,
|
Ok(ok) => ok,
|
||||||
Err(err) => {
|
Err(err) => {
|
||||||
tracing::error!("failed to load user data from daemon: {}", err);
|
tracing::error!("failed to load user data from daemon: {}", err);
|
||||||
user_data_fallback()
|
runtime.block_on(user_data_fallback())
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue