style(xatu): clarify manual inherit diagnostic
This commit is contained in:
@@ -15,7 +15,7 @@ impl NodeRule for ManualInherit {
|
|||||||
|
|
||||||
fn check(node: &Self::Node) -> Option<&'static str> {
|
fn check(node: &Self::Node) -> Option<&'static str> {
|
||||||
if node.key == node.value {
|
if node.key == node.value {
|
||||||
Some("This assignment is better written with `inherit`")
|
Some("Use `inherit` for this assignment")
|
||||||
} else {
|
} else {
|
||||||
None
|
None
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user