Skip to content

Commit

Permalink
[#96] MonitoringMonitor state is const
Browse files Browse the repository at this point in the history
  • Loading branch information
elfenpiff committed Jan 27, 2024
1 parent c89d825 commit 7fc4b36
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion iceoryx2-cal/src/monitoring/file_lock.rs
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ impl NamedConcept for Monitor {
}

impl MonitoringMonitor for Monitor {
fn state(&mut self) -> Result<super::State, MonitoringStateError> {
fn state(&self) -> Result<super::State, MonitoringStateError> {
let msg = "Unable to acquire monitor state";

match self.monitor.state() {
Expand Down
2 changes: 1 addition & 1 deletion iceoryx2-cal/src/monitoring/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ pub enum MonitoringStateError {
pub trait MonitoringToken: NamedConcept {}

pub trait MonitoringMonitor: NamedConcept {
fn state(&mut self) -> Result<State, MonitoringStateError>;
fn state(&self) -> Result<State, MonitoringStateError>;
}

pub trait MonitoringBuilder<T: Monitoring>: NamedConceptBuilder<T> {
Expand Down

0 comments on commit 7fc4b36

Please sign in to comment.