From 8cc43e51fe2d14a965d271059aa031c89440fc30 Mon Sep 17 00:00:00 2001 From: Jan-Niklas Burfeind Date: Fri, 26 Jul 2024 09:54:35 +0200 Subject: [PATCH] refactor: Drop imports of components only used once (#365) such as `use somecrate` is unnecessary in rust. --- samples/demo-server/src/machine.rs | 3 --- samples/demo-server/src/main.rs | 2 -- 2 files changed, 5 deletions(-) diff --git a/samples/demo-server/src/machine.rs b/samples/demo-server/src/machine.rs index d2f1a743b..deb908e9a 100644 --- a/samples/demo-server/src/machine.rs +++ b/samples/demo-server/src/machine.rs @@ -7,10 +7,7 @@ use std::sync::{ Arc, }; -use chrono; use chrono::TimeDelta; -use rand; - use opcua::server::{events::event::*, prelude::*}; pub fn add_machinery(server: &mut Server, ns: u16, raise_event: bool) { diff --git a/samples/demo-server/src/main.rs b/samples/demo-server/src/main.rs index bbc7f29af..d4ff0f395 100644 --- a/samples/demo-server/src/main.rs +++ b/samples/demo-server/src/main.rs @@ -22,8 +22,6 @@ extern crate log; use std::{path::PathBuf, sync::Arc}; -use tokio; - use opcua::server::{http, prelude::*}; use opcua::sync::RwLock;