From 98b5e3b68c3b2f30fdfc59f083385b70c98a4ccf Mon Sep 17 00:00:00 2001 From: Jacob Magnusson Date: Thu, 21 Dec 2023 10:44:06 +0100 Subject: [PATCH] Make frame::Exception public Today one has to match on the to_string() representation, which is sub-optimal to say the least. --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index c1be935c..2063a126 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -42,7 +42,7 @@ pub use self::slave::{Slave, SlaveId}; mod codec; mod frame; -pub use self::frame::{Address, FunctionCode, Quantity, Request, Response}; +pub use self::frame::{Address, Exception, FunctionCode, Quantity, Request, Response}; mod service;