Skip to content

Commit 2984478

Browse files
committed
Fix a couple warnings: unused id, mutability
1 parent f1ab66d commit 2984478

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

rust/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ impl PyIter {
4242

4343
for sample_column in &sample.columns {
4444
let sample_column_name = sample_column.desc.name.clone();
45-
let mut column_matches = slf.columns.is_empty() || slf.columns.iter().any(|c| {
45+
let column_matches = slf.columns.is_empty() || slf.columns.iter().any(|c| {
4646
if c.ends_with("*") {
4747
// Remove * and check if sample_column_name starts with prefix
4848
let prefix = &c[..c.len()-1];
@@ -142,7 +142,7 @@ impl PyDevice {
142142

143143
// Convert streams to dict
144144
let streams_dict = PyDict::new(py);
145-
for (id, stream) in meta.streams {
145+
for (_, stream) in meta.streams {
146146
let stream_dict = PyDict::new(py);
147147
stream_dict.set_item("stream_id", stream.stream.stream_id.to_string())?;
148148
// stream_dict.set_item("name", stream.name.to_string())?;

0 commit comments

Comments
 (0)