chore(tvix): fix trivial clippy lints
Relates to b/321. Change-Id: I37284f89b186e469eb432e2bbedb37aa125a6ad4 Reviewed-on: https://cl.tvl.fyi/c/depot/+/9961 Tested-by: BuildkiteCI Reviewed-by: flokli <flokli@flokli.de> Autosubmit: tazjin <tazjin@tvl.su>
This commit is contained in:
parent
67999f0dcf
commit
b3b1f649d6
14 changed files with 35 additions and 36 deletions
|
|
@ -176,10 +176,10 @@ fn nix_escape_char(ch: char, next: Option<&char>) -> Option<&'static str> {
|
|||
/// parsed as identifiers. See also cppnix commit
|
||||
/// b72bc4a972fe568744d98b89d63adcd504cb586c.
|
||||
fn is_keyword(s: &str) -> bool {
|
||||
match s {
|
||||
"if" | "then" | "else" | "assert" | "with" | "let" | "in" | "rec" | "inherit" => true,
|
||||
_ => false,
|
||||
}
|
||||
matches!(
|
||||
s,
|
||||
"if" | "then" | "else" | "assert" | "with" | "let" | "in" | "rec" | "inherit"
|
||||
)
|
||||
}
|
||||
|
||||
/// Return true if this string can be used as an identifier in Nix.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue