mirror of
https://github.com/erg-lang/erg.git
synced 2025-09-27 19:59:07 +00:00
refactor: fix warns
This commit is contained in:
parent
cf726fe4a8
commit
edfabd97e7
14 changed files with 22 additions and 22 deletions
|
@ -511,7 +511,7 @@ impl Args {
|
|||
#[to_owned(cloned)]
|
||||
pub fn get_left_or_key(&self, key: &str) -> Option<&Expr> {
|
||||
if !self.pos_args.is_empty() {
|
||||
self.pos_args.get(0).map(|a| &a.expr)
|
||||
self.pos_args.first().map(|a| &a.expr)
|
||||
} else {
|
||||
self.kw_args.iter().find_map(|a| {
|
||||
if &a.keyword.content[..] == key {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue