refactor:remove common_error::prelude (#1946)

* feat:Remove common_error::prelude

* fix merge error

* cr comment

* fix error
This commit is contained in:
Ben Baoyi
2023-07-13 10:36:36 +08:00
committed by GitHub
parent 16be56a743
commit 9ff7670adf
104 changed files with 179 additions and 150 deletions

View File

@@ -14,7 +14,7 @@
//! LogStore APIs.
use common_error::prelude::ErrorExt;
use common_error::ext::ErrorExt;
use crate::logstore::entry::{Entry, Id};
use crate::logstore::entry_stream::SendableEntryStream;

View File

@@ -14,7 +14,7 @@
use std::pin::Pin;
use common_error::prelude::ErrorExt;
use common_error::ext::ErrorExt;
use futures::Stream;
use crate::logstore::entry::Entry;
@@ -34,6 +34,7 @@ mod tests {
use std::task::{Context, Poll};
use futures::StreamExt;
use snafu::Snafu;
use super::*;
pub use crate::logstore::entry::Id;
@@ -43,8 +44,6 @@ mod tests {
data: Vec<u8>,
}
use common_error::prelude::{ErrorExt, Snafu};
#[derive(Debug, Snafu)]
#[snafu(visibility(pub))]
pub struct Error {}