Skip to content

Commit

Permalink
Format source
Browse files Browse the repository at this point in the history
  • Loading branch information
locka99 committed Sep 20, 2020
1 parent 1bf1356 commit ef1f755
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions types/src/data_value.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ use crate::{
byte_string::ByteString,
date_time::*,
encoding::*,
service_types::TimestampsToReturn,
guid::Guid,
localized_text::LocalizedText,
node_id::NodeId,
qualified_name::QualifiedName,
service_types::TimestampsToReturn,
status_codes::StatusCode,
string::UAString,
variant::Variant,
Expand Down Expand Up @@ -369,19 +369,19 @@ impl DataValue {
self.source_picoseconds = Some(0);
self.server_timestamp = None;
self.server_picoseconds = None;
},
}
TimestampsToReturn::Server => {
self.source_timestamp = None;
self.source_picoseconds = None;
self.server_timestamp = Some(server_timestamp);
self.server_picoseconds = Some(0);
},
}
TimestampsToReturn::Both => {
self.source_timestamp = Some(source_timestamp);
self.source_picoseconds = Some(0);
self.server_timestamp = Some(server_timestamp);
self.server_picoseconds = Some(0);
},
}
TimestampsToReturn::Neither => {
self.source_timestamp = None;
self.source_picoseconds = None;
Expand Down

0 comments on commit ef1f755

Please sign in to comment.