Fixes some Clippy warnings

pull/10/head
Tpt 6 years ago
parent 9659e33251
commit 2ba00cd8b5
  1. 2
      lib/src/sparql/parser.rs
  2. 4
      lib/src/sparql/sparql_grammar.rustpeg

@ -264,7 +264,7 @@ mod grammar {
pv.extend(p.visible_variables().into_iter().cloned()) //TODO: is it really useful to do a projection? pv.extend(p.visible_variables().into_iter().cloned()) //TODO: is it really useful to do a projection?
} }
} }
let mut m = GraphPattern::from(p); let mut m = p;
//ORDER BY //ORDER BY
if let Some(order) = order_by { if let Some(order) = order_by {

@ -46,7 +46,7 @@ SelectQuery -> Query = s:SelectClause _ d:DatasetClauses _ w:WhereClause _ g:Gro
//[8] //[8]
SubSelect -> GraphPattern = s:SelectClause _ w:WhereClause _ g:GroupClause? _ h:HavingClause? _ o:OrderClause? _ l:LimitOffsetClauses? _ v:ValuesClause { //TODO: Modifiers SubSelect -> GraphPattern = s:SelectClause _ w:WhereClause _ g:GroupClause? _ h:HavingClause? _ o:OrderClause? _ l:LimitOffsetClauses? _ v:ValuesClause { //TODO: Modifiers
build_select(s, w, g, h, o, l, v, state).into() build_select(s, w, g, h, o, l, v, state)
} }
//[9] //[9]
@ -308,7 +308,7 @@ InlineData -> PartialGraphPattern = "VALUES"i _ p:DataBlock { PartialGraphPatter
//[62] //[62]
DataBlock -> GraphPattern = l:(InlineDataOneVar / InlineDataFull) { DataBlock -> GraphPattern = l:(InlineDataOneVar / InlineDataFull) {
GraphPattern::Data(l).into() GraphPattern::Data(l)
} }
//[63] //[63]

Loading…
Cancel
Save