Depend on anyhow directly

This removes the proxy via crate::error to depend on anyhow directly.
There is no benefit to this indirection and this makes it simpler to
see which error types are used.
This commit is contained in:
Floris Bruynooghe
2021-01-24 15:10:38 +01:00
committed by link2xt
parent 7b5a3a8346
commit 355e0145c0
28 changed files with 40 additions and 48 deletions

View File

@@ -1,5 +1,7 @@
//! # Chat list module
use anyhow::{bail, ensure, Result};
use crate::chat;
use crate::chat::{update_special_chat_names, Chat, ChatId, ChatVisibility};
use crate::constants::{
@@ -10,7 +12,6 @@ use crate::constants::{
use crate::contact::Contact;
use crate::context::Context;
use crate::ephemeral::delete_expired_messages;
use crate::error::{bail, ensure, Result};
use crate::lot::Lot;
use crate::message::{Message, MessageState, MsgId};
use crate::stock::StockMessage;