1#![no_std]
7
8#![doc = include_str!("README.md")]
10
11#![feature(const_convert)]
13#![feature(default_field_values)]
14#![feature(const_trait_impl)]
15
16extern crate alloc;
18
19mod conversions;
21mod severity;
22#[cfg(test)]
23mod tests;
24
25use alloc::string::String;
27
28pub use severity::Severity;
30
31use core::hash::{
33 Hash,
34 Hasher
35};
36
37
38#[derive(Debug)]
44pub struct Issue {
45 pub name: &'static str,
46 pub description: Option<String> = None,
47 pub severity: Severity = Severity::Error
48}
49
50impl Hash for Issue {
52 fn hash<H: Hasher>(&self, state: &mut H) {Hash::hash(self.name, state)}
53}