1
0
Fork 0

Remove unused field

gh-action
Bo Jeanes 2022-08-30 17:41:46 +10:00
parent f346262be7
commit 69ada6e861
1 changed files with 1 additions and 2 deletions

View File

@ -17,14 +17,13 @@ where
#[derive(Debug)] #[derive(Debug)]
pub struct Context { pub struct Context {
// unit: Slave, // unit: Slave,
host: String,
service: sungrow_winets::Client, service: sungrow_winets::Client,
} }
impl Context { impl Context {
async fn new(host: String) -> Result<Self, Error> { async fn new(host: String) -> Result<Self, Error> {
let service = sungrow_winets::Client::new(&host).await?; let service = sungrow_winets::Client::new(&host).await?;
Ok(Self { host, service }) Ok(Self { service })
} }
} }