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