Commit 6a7f88c8 authored by Leonardo Schwarz's avatar Leonardo Schwarz

Rename error module and make it private.

parent b0b9d50a
Pipeline #121830 failed with stage
in 1 minute and 25 seconds
//! Contains the types and functions to communicate with the MusicBrainz API.
use crate::errors::{Error, ErrorKind};
use crate::error::{Error, ErrorKind};
use crate::entities::{Mbid, ResourceOld, Resource};
use reqwest_mock::Client as MockClient;
......
use crate::errors::Error;
use crate::error::Error;
use isolang::Language as IsoLang;
use std::fmt;
use xpath_reader::{FromXml, FromXmlOptional, Reader};
......
......@@ -161,7 +161,9 @@ macro_rules! ref_fetch_full_old
}
ref_fetch_full!(
ReleaseRef, crate::entities::Release, crate::entities::ReleaseOptions
ReleaseRef,
crate::entities::Release,
crate::entities::ReleaseOptions
);
ref_fetch_full_old!(
......
......@@ -10,8 +10,8 @@ extern crate uuid;
extern crate url;
extern crate xpath_reader;
pub mod errors;
pub use self::errors::*;
mod error;
pub use self::error::Error;
pub mod client;
pub mod entities;
......
......@@ -15,7 +15,7 @@
use crate::entities as full_entities;
use crate::entities::ResourceOld;
use crate::errors::Error;
use crate::error::Error;
use crate::client::Client;
use reqwest_mock::Url;
......
......@@ -10,7 +10,7 @@ pub fn musicbrainz_context<'d>() -> Context<'d> {
pub mod test_utils {
use crate::client::{Client, ClientConfig, ClientWaits};
use crate::entities::{Mbid, ResourceOld, Resource};
use crate::errors::Error;
use crate::error::Error;
use reqwest_mock::GenericClient as HttpClient;
use xpath_reader::reader::FromXml;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment