1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
use rust_releases_core::Channel;
use rust_releases_io::IoError;
pub type RustChangelogResult<T> = Result<T, RustChangelogError>;
#[derive(Debug, thiserror::Error)]
#[non_exhaustive]
pub enum RustChangelogError {
#[error("Channel {0} is not available for the 'RustChangelog' source type")]
ChannelNotAvailable(Channel),
#[error("{0}")]
RustReleasesIoError(#[from] IoError),
#[error("{0}")]
UnrecognizedText(#[from] std::string::FromUtf8Error),
}