Skip to content

Commit ca4785b

Browse files
committed
Don't make general write functions mut
Only higher level API's for specific registers need to be mut. The low level ones should just always work
1 parent c7c022c commit ca4785b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ni-fpga/src/nifpga.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ macro_rules! type_wrapper {
3535
.to_result()
3636
}
3737

38-
pub fn $write_fun_name(&mut self, indicator: Offset, value: $type) -> Result<(), Error> {
38+
pub fn $write_fun_name(&self, indicator: Offset, value: $type) -> Result<(), Error> {
3939
self.api
4040
.base
4141
.$write_ffi_name(self.session, indicator, value)
@@ -54,7 +54,7 @@ macro_rules! type_wrapper {
5454
}
5555

5656
pub fn $writearr_fun_name(
57-
&mut self,
57+
&self,
5858
indicator: Offset,
5959
value: &[$type],
6060
) -> Result<(), Error> {

0 commit comments

Comments
 (0)