diff --git a/src/async_monitored_item.rs b/src/async_monitored_item.rs index 264a7a1..aac4e11 100644 --- a/src/async_monitored_item.rs +++ b/src/async_monitored_item.rs @@ -54,7 +54,7 @@ impl MonitoredItemBuilder { /// Sets sampling interval. /// - /// Default value is 250.0 [ms]. + /// Default value is 250.0 ms. /// /// See [`ua::MonitoringParameters::with_sampling_interval()`]. #[must_use] diff --git a/src/async_subscription.rs b/src/async_subscription.rs index a274297..ce1d6b7 100644 --- a/src/async_subscription.rs +++ b/src/async_subscription.rs @@ -34,7 +34,7 @@ pub struct SubscriptionBuilder { impl SubscriptionBuilder { /// Sets requested publishing interval. /// - /// Default value is 500.0 [ms]. + /// Default value is 500.0 ms. /// /// See [`ua::CreateSubscriptionRequest::with_requested_publishing_interval()`]. #[must_use] diff --git a/src/ua/array.rs b/src/ua/array.rs index 617ed30..2fabce0 100644 --- a/src/ua/array.rs +++ b/src/ua/array.rs @@ -175,6 +175,7 @@ impl Array { /// /// Ownership is transferred. There must not be any aliased references to the array elements, as /// they will be owned and freed when the returned value is dropped. + #[allow(dead_code)] // --no-default-features pub(crate) unsafe fn move_from_raw_parts( size: &mut usize, ptr: &mut *mut T::Inner, diff --git a/src/ua/data_types/create_monitored_items_request.rs b/src/ua/data_types/create_monitored_items_request.rs index 34b063c..dee0ebf 100644 --- a/src/ua/data_types/create_monitored_items_request.rs +++ b/src/ua/data_types/create_monitored_items_request.rs @@ -19,6 +19,7 @@ impl CreateMonitoredItemsRequest { self } + #[allow(dead_code)] // --no-default-features #[must_use] pub(crate) fn items_to_create(&self) -> Option<&[ua::MonitoredItemCreateRequest]> { unsafe { ua::Array::slice_from_raw_parts(self.0.itemsToCreateSize, self.0.itemsToCreate) } diff --git a/src/ua/data_types/create_monitored_items_response.rs b/src/ua/data_types/create_monitored_items_response.rs index b985e07..c393051 100644 --- a/src/ua/data_types/create_monitored_items_response.rs +++ b/src/ua/data_types/create_monitored_items_response.rs @@ -8,6 +8,7 @@ impl CreateMonitoredItemsResponse { unsafe { ua::Array::slice_from_raw_parts(self.0.resultsSize, self.0.results) } } + #[allow(dead_code)] // --no-default-features pub(crate) fn into_results(mut self) -> Option> { unsafe { ua::Array::move_from_raw_parts(&mut self.0.resultsSize, &mut self.0.results) } } diff --git a/src/ua/data_types/monitored_item_create_result.rs b/src/ua/data_types/monitored_item_create_result.rs index 8b16aa4..28a3f8b 100644 --- a/src/ua/data_types/monitored_item_create_result.rs +++ b/src/ua/data_types/monitored_item_create_result.rs @@ -5,11 +5,13 @@ use crate::{ua, Error, Result}; crate::data_type!(MonitoredItemCreateResult); impl MonitoredItemCreateResult { + #[allow(dead_code)] // --no-default-features #[must_use] pub(crate) const fn status_code(&self) -> ua::StatusCode { ua::StatusCode::new(self.0.statusCode) } + #[allow(dead_code)] // --no-default-features #[must_use] pub(crate) const fn monitored_item_id(&self) -> ua::MonitoredItemId { ua::MonitoredItemId::new(self.0.monitoredItemId) diff --git a/src/ua/monitored_item_id.rs b/src/ua/monitored_item_id.rs index 6372a75..24014af 100644 --- a/src/ua/monitored_item_id.rs +++ b/src/ua/monitored_item_id.rs @@ -5,6 +5,7 @@ use crate::ua; pub struct MonitoredItemId(u32); impl MonitoredItemId { + #[allow(dead_code)] // --no-default-features #[must_use] pub(crate) const fn new(id: u32) -> Self { Self(id)