chore(linter): use line!()

This commit is contained in:
GreasySlug 2024-05-28 01:50:18 +09:00
parent 339b27400d
commit d0f534360f
2 changed files with 3 additions and 1 deletions

View file

@ -21,6 +21,7 @@ pub(crate) fn too_many_params(input: Input, caused_by: String, loc: Location) ->
pub(crate) fn too_many_instance_attributes(
input: Input,
errno: usize,
caused_by: String,
loc: Location,
) -> CompileWarning {
@ -42,7 +43,7 @@ pub(crate) fn too_many_instance_attributes(
ErrorCore::new(
vec![SubMessage::ambiguous_new(loc, vec![], Some(hint))],
msg,
0,
errno,
ErrorKind::AttributeWarning,
loc,
),