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
34#[derive(Debug)]
40pub struct Issue {
41 pub name: &'static str,
42 pub description: Option<String>,
43 pub severity: Severity
44}
45
46impl Hash for Issue {
48 #[inline]
49 fn hash<H: Hasher>(&self, state: &mut H) {Hash::hash(self.name, state)}
50}