Split errors out into a separate module

This commit is contained in:
Simon Hausmann 2023-12-13 23:54:32 +01:00 committed by Simon Hausmann
parent 73024beb98
commit 10d6aa199c
3 changed files with 79 additions and 72 deletions

View file

@ -3,6 +3,7 @@
mod interpreter;
use interpreter::{ComponentCompiler, PyDiagnostic, PyDiagnosticLevel, PyValueType};
mod errors;
use pyo3::prelude::*;
@ -12,5 +13,6 @@ fn slint(_py: Python<'_>, m: &PyModule) -> PyResult<()> {
m.add_class::<PyValueType>()?;
m.add_class::<PyDiagnosticLevel>()?;
m.add_class::<PyDiagnostic>()?;
Ok(())
}