fmt: remove the prefixed module name of const names, that are in the same module (related #22183) (#22185)

This commit is contained in:
yuyi 2024-09-10 16:25:56 +08:00 committed by GitHub
parent 234fb8e2b0
commit 008aaad999
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
284 changed files with 2539 additions and 2572 deletions

View file

@ -390,7 +390,7 @@ fn (mut cb Clipboard) start_listener() {
fn (mut cb Clipboard) intern_atoms() {
cb.atoms << Atom(4) // XA_ATOM
cb.atoms << Atom(31) // XA_STRING
for i, name in x11.atom_names {
for i, name in atom_names {
only_if_exists := if i == int(AtomType.utf8_string) { 1 } else { 0 }
cb.atoms << C.XInternAtom(cb.display, &char(name.str), only_if_exists)
if i == int(AtomType.utf8_string) && cb.atoms[i] == Atom(0) {