mirror of
https://github.com/erg-lang/erg.git
synced 2025-10-02 21:44:34 +00:00
chore: fix clippy warns
This commit is contained in:
parent
53f27394fb
commit
a302235c54
5 changed files with 13 additions and 18 deletions
|
@ -566,11 +566,6 @@ impl RegistrationMode {
|
|||
}
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
|
||||
pub struct ContextInfo {
|
||||
mod_id: usize,
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone, PartialEq, Eq, Hash)]
|
||||
pub struct MethodPair {
|
||||
definition_type: Type,
|
||||
|
|
|
@ -1207,7 +1207,7 @@ passed keyword args: {kw_args_len}"
|
|||
"traditional_chinese" => candidate.push_str("候選: "),
|
||||
"english" => candidate.push_str("candidates: "),
|
||||
);
|
||||
candidate.push_str_with_color_and_attr(&fmt_vec(candidates), WARN, ATTR);
|
||||
candidate.push_str_with_color_and_attr(fmt_vec(candidates), WARN, ATTR);
|
||||
Self::new(
|
||||
ErrorCore::new(
|
||||
vec![SubMessage::ambiguous_new(
|
||||
|
@ -1258,7 +1258,7 @@ passed keyword args: {kw_args_len}"
|
|||
"traditional_chinese" => candidate.push_str("候選: "),
|
||||
"english" => candidate.push_str("candidates: "),
|
||||
);
|
||||
candidate.push_str_with_color_and_attr(&fmt_vec(candidates), WARN, ATTR);
|
||||
candidate.push_str_with_color_and_attr(fmt_vec(candidates), WARN, ATTR);
|
||||
Self::new(
|
||||
ErrorCore::new(
|
||||
vec![SubMessage::ambiguous_new(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue