Age | Commit message (Collapse) | Author | Files | Lines |
|
Fix clippy error about missing main().
Fix various clippy warnings "help: consider removing `'static`: `&str`"
Run clippy with the rust test.
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
|
|
|
|
Fixes: 7381b9bfadd31c ("Introduce separate args for title & subtitle
with docs generator")
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
|
|
keymap-gen can create header files that include the length of the array. Using
ARRAY_SIZE on the array becomes then possible, and this can be preferrable to
the "x_len" symbols because static analysis cannot necessarily see the value of
"x_len".
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
|
|
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
|
|
This give us much nicer lookup for string keys, boundary checks
and better introspection when it comes to iteration.
Signed-off-by: Pierre Ossman <ossman@cendio.se>
|
|
The array might not be in the same unit as the code using it, so
we need a way of indicating the number of entries.
Signed-off-by: Pierre Ossman <ossman@cendio.se>
|
|
Signed-off-by: Pierre Ossman <ossman@cendio.se>
|
|
Some systems use string identifiers rather than integers.
Signed-off-by: Pierre Ossman <ossman@cendio.se>
|
|
Signed-off-by: Pierre Ossman <ossman@cendio.se>
|
|
Signed-off-by: Pierre Ossman <ossman@cendio.se>
|
|
Signed-off-by: Pierre Ossman <ossman@cendio.se>
|
|
Signed-off-by: Pierre Ossman <ossman@cendio.se>
|