Skip to content

Commit

Permalink
Reduce warning
Browse files Browse the repository at this point in the history
  • Loading branch information
Abdillah committed Jun 3, 2021
1 parent 069ea28 commit e5befb8
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/queries.rs
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ pub trait QueryBuilder<T> {
self
}

fn has_tag(mut self, key: &str) -> Self where Self: Sized {
fn has_tag(self, _key: &str) -> Self where Self: Sized {
unimplemented!()
}

Expand Down Expand Up @@ -159,7 +159,7 @@ impl QueryBuilder<map::Way> for Builder<map::Way> {

fn get(&self) -> Vec<map::Way> {
let mut r: Vec<map::Way> = vec![];
for (k, v) in self.storage.iter() {
for (_k, v) in self.storage.iter() {
for c in &self.conditions {
if c.filter(v.clone()) {
r.push(v.clone())
Expand All @@ -183,7 +183,7 @@ impl QueryBuilder<map::Node> for Builder<map::Node> {

fn get(&self) -> Vec<map::Node> {
let mut r: Vec<map::Node> = vec![];
for (k, v) in self.storage.iter() {
for (_k, v) in self.storage.iter() {
for c in &self.conditions {
if c.filter(v.clone()) {
r.push(v.clone())
Expand All @@ -194,6 +194,8 @@ impl QueryBuilder<map::Node> for Builder<map::Node> {
}
}


#[cfg(test)]
mod test {
use osm_xml as osm;
use crate::queries::Builder;
Expand Down

0 comments on commit e5befb8

Please sign in to comment.