Skip to content

Commit 8b59d5c

Browse files
committed
fix some issues with deps
1 parent c63d8f9 commit 8b59d5c

File tree

11 files changed

+21
-136
lines changed

11 files changed

+21
-136
lines changed

Cargo.lock

+6-122
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ env_logger = "0.11.3"
2020
serde = { version = "1.0.166", features = ["derive"] }
2121
serde_json = { version = "1.0.99" }
2222
serde_yaml = "0.9.22"
23-
reqwest = { version = "0.12.4", features = ["blocking", "json"] }
23+
reqwest = { version = "0.11", features = ["blocking", "json"] }
2424
tracing = "0.1"
2525
axum = "0.6.16"
2626
tokio = { version = "1.37.0", features = ["full"] }

src/converter/to_nav.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -30,18 +30,18 @@ impl<'a> Converter for ToRosNavConverter<'a> {
3030
while let Some((id, st)) = stack.pop() {
3131
let node = self.tree.node(&id)?;
3232
if node.is_action() {
33-
&self.write_terminal(&mut writer, id, node)?;
33+
let _ = &self.write_terminal(&mut writer, id, node)?;
3434
} else {
3535
match st {
3636
State::Ready => {
37-
&self.write_interior_start(&mut writer, id, node)?;
37+
let _ = &self.write_interior_start(&mut writer, id, node)?;
3838
stack.push((id, State::Started));
3939
for child in node.children().iter().rev() {
4040
stack.push((*child, State::Ready));
4141
}
4242
}
4343
State::Started => {
44-
&self.write_interior_end(&mut writer, id, node)?;
44+
let _ = &self.write_interior_end(&mut writer, id, node)?;
4545
}
4646
}
4747
}

src/runtime/action/builtin/remote.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
use crate::runtime::action::{Impl, ImplRemote, Tick};
1+
use crate::runtime::action::{ ImplRemote, Tick};
22
use crate::runtime::args::{RtArgs, RtArgument};
33
use crate::runtime::context::{TreeRemoteContextRef};
44
use crate::runtime::{to_fail, TickResult};
@@ -62,7 +62,7 @@ impl ImplRemote for RemoteHttpAction {
6262
let resp = env.runtime.block_on(async {
6363
let client: Client<HttpConnector, Body> =
6464
hyper::Client::builder().build(HttpConnector::new());
65-
/// todo with vec is slow. Bytes?
65+
// todo with vec is slow. Bytes?
6666
let body_js = serde_json::to_vec(&request).unwrap();
6767

6868
let request = Request::builder()

src/runtime/env.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ use tokio::runtime::{Builder, Runtime};
1313
use tokio::task::JoinError;
1414
use tokio::task::JoinHandle;
1515
use tokio_util::sync::CancellationToken;
16-
use crate::runtime::env::daemon::{DaemonFn, DaemonName, Daemon};
16+
use crate::runtime::env::daemon::{ DaemonName, Daemon};
1717
use crate::runtime::env::daemon::context::DaemonContext;
1818
use crate::runtime::env::daemon::task::{DaemonStopSignal, DaemonTask};
1919

src/runtime/forester/decorator.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
use crate::runtime::args::{RtArgs, RtArgument, RtValue, RtValueNumber};
1+
use crate::runtime::args::{RtArgs, RtValue, RtValueNumber};
22
use crate::runtime::context::{RNodeState, TreeContext};
33
use crate::runtime::forester::flow::{run_with, LEN, REASON};
44
use crate::runtime::rtree::rnode::DecoratorType;

src/runtime/rtree.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ pub mod transform;
88
use crate::runtime::action::ActionName;
99
use crate::runtime::args::transform::{to_dec_rt_args, to_rt_args};
1010

11-
use crate::runtime::rtree::rnode::{DecoratorType, FlowType, RNode, RNodeId};
11+
use crate::runtime::rtree::rnode::{DecoratorType, RNode, RNodeId};
1212
use crate::runtime::rtree::transform::{StackItem, Transformer};
1313
use crate::runtime::{RtOk, RtResult, RuntimeError};
1414
use crate::tree::parser::ast::call::Call;
@@ -137,7 +137,7 @@ impl RuntimeTree {
137137
// - if it is lambda we already found it
138138
Call::HoInvocation(key) => {
139139
debug!(target:"tree[construct]", "found ho invocation with id {id} in parent {parent_id}");
140-
let (p_id, parent_args, parent_params) =
140+
let (p_id, _parent_args, _parent_params) =
141141
builder.get_chain_skip_lambda(&parent_id)?.get_tree();
142142
let call = builder.find_ho_call(&parent_id, &key)?;
143143
if call.is_lambda() || call.is_decorator() {

src/runtime/rtree/analyzer.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ impl<'a> RtTreeAnalyzer<'a> {
4343
{
4444
self.tree
4545
.iter()
46-
.find(|(id, node)| filter(node))
46+
.find(|(_id, node)| filter(node))
4747
}
4848
/// Returns the node by filter
4949
pub fn find_map_by<F, T>(&self, filter_map: F) -> Option<(RNodeId, T)>

src/simulator/builder.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
12
use crate::get_pb;
23
use crate::runtime::action::keeper::ActionImpl;
34
use crate::runtime::builder::ForesterBuilder;
@@ -97,7 +98,7 @@ impl SimulatorBuilder {
9798
pub fn root(&mut self, root: PathBuf) {
9899
self.root = Some(root);
99100
}
100-
101+
#[allow(irrefutable_let_patterns)]
101102
/// Build
102103
pub fn build(&mut self) -> RtResult<Simulator> {
103104
let mut fb = self.fb.take().ok_or(RuntimeError::uex(

src/tree/parser/ast/arg.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ use crate::tree::parser::ast::Key;
55
use crate::tree::{cerr, TreeError};
66
use itertools::Itertools;
77
use serde::{Deserialize, Serialize};
8-
use std::fmt::{Display, Formatter, Write};
8+
use std::fmt::{Display, Formatter};
99

1010
/// Just a pair of name and type
1111
/// This is a representation of a tree parameter

src/tree/parser/ast/call.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ impl Debug for Call {
3434
let _ = write!(f, "{}({}) :", tpe, args);
3535
let mut elems = f.debug_list();
3636
elems.entry(call);
37-
elems.finish();
37+
let _ = elems.finish();
3838
Ok(())
3939
}
4040
}

0 commit comments

Comments
 (0)