checker: warn about byte deprecation, when used as a fn parameter (#19629)

This commit is contained in:
Turiiya 2023-10-23 19:54:28 +02:00 committed by GitHub
parent 8a8129cd5c
commit 6437d82ee1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 20 additions and 10 deletions

View file

@ -18,7 +18,7 @@ pub fn new_builder(initial_size int) Builder {
return []u8{cap: initial_size}
}
pub fn (mut b Builder) write_byte(data byte) {
pub fn (mut b Builder) write_byte(data u8) {
b << data
}