mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-01 09:05:27 +00:00
update deprecated error handlers
This commit is contained in:
parent
43c081d73b
commit
00d130e107
3 changed files with 6 additions and 15 deletions
|
|
@ -31,10 +31,7 @@ impl Identity {
|
|||
profile_identity_id: &Rc<i64>,
|
||||
) -> Result<Self> {
|
||||
// Init components
|
||||
let auth = match Auth::build(connection) {
|
||||
Ok(auth) => Rc::new(auth),
|
||||
Err(e) => bail!("Could not create auth: {e}"),
|
||||
};
|
||||
let auth = Rc::new(Auth::build(connection)?);
|
||||
let database = Rc::new(Database::build(connection, profile_identity_id));
|
||||
let memory = Rc::new(Memory::new());
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue