1#![no_std]
7
8#![feature(const_convert)]
10#![feature(const_trait_impl)]
11
12extern crate alloc;
14
15mod conversions;
17mod severity;
18#[cfg(test)]
19mod tests;
20
21use alloc::string::String;
23
24pub use severity::Severity;
26
27use core::hash::{
29 Hash,
30 Hasher
31};
32
33
34pub struct Issue {
40 pub name: &'static str,
41 pub description: Option<String>,
42 pub severity: Severity
43}
44
45impl Hash for Issue {
47 #[inline]
48 fn hash<H: Hasher>(&self, state: &mut H) {Hash::hash(self.name, state)}
49}