-
-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
V0.0.3 #8
Conversation
core/src/rules/program.rs
Outdated
pub fn from_iter(instructions: impl IntoIterator<Item = Rule<Q, S>>) -> Self | ||
where | ||
Q: Default, | ||
{ | ||
Self { | ||
initial_state: State::default(), | ||
ruleset: RuleSet::from_iter(instructions), | ||
ruleset: Ruleset::from_iter(instructions), | ||
} | ||
} |
Check warning
Code scanning / clippy
method from_iter can be confused for the standard trait method std::iter::FromIterator::from_iter Warning
pub fn new() -> ActorBuilder<Q, S> { | ||
ActorBuilder::new() | ||
} |
Check warning
Code scanning / clippy
methods called new usually return Self Warning
seal!(); | ||
|
||
fn as_slice(&self) -> &[Self::Elem] { | ||
&self |
Check warning
Code scanning / clippy
this expression creates a reference which is immediately dereferenced by the compiler Warning
fn write_symbol(&self) -> &S { | ||
&self.write_symbol() | ||
fn value(&self) -> &S { | ||
&self.symbol() |
Check warning
Code scanning / clippy
this expression creates a reference which is immediately dereferenced by the compiler Warning
pub fn from_iter<I>(iter: I) -> Self | ||
where | ||
Q: Default, | ||
I: IntoIterator<Item = (Head<Q, S>, Tail<Q, S>)>, | ||
{ | ||
Self { | ||
initial_state: State::default(), | ||
rules: HashMap::from_iter(iter), | ||
} | ||
} |
Check warning
Code scanning / clippy
method from_iter can be confused for the standard trait method std::iter::FromIterator::from_iter Warning
use super::Actor; | ||
use crate::{Error, Head, Program, Symbolic}; | ||
|
||
/// |
Check warning
Code scanning / clippy
empty doc comment Warning
pub fn from_str(value: &str) -> Self { | ||
match value { | ||
"left" | "Left" | "LEFT" | "l" | "L" => Self::Left, | ||
"right" | "Right" | "RIGHT" | "r" | "R" => Self::Right, | ||
_ => Self::Stay, | ||
} | ||
} |
Check warning
Code scanning / clippy
method from_str can be confused for the standard trait method std::str::FromStr::from_str Warning
} | ||
|
||
fn get_mut(&mut self, key: &Self::Key) -> Option<&mut Self::Value> { | ||
HashMap::get_mut(self, &key) |
Check warning
Code scanning / clippy
this expression creates a reference which is immediately dereferenced by the compiler Warning
No description provided.