mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-29 23:04:49 +00:00
all the clippy fixes
This commit is contained in:
parent
94a33c91dc
commit
754521c4c3
14 changed files with 93 additions and 120 deletions
|
@ -4,13 +4,13 @@ use roc_parse::ast::CommentOrNewline;
|
|||
/// The number of spaces to indent.
|
||||
pub const INDENT: u16 = 4;
|
||||
|
||||
pub fn newline<'a>(buf: &mut String<'a>, indent: u16) {
|
||||
pub fn newline(buf: &mut String<'_>, indent: u16) {
|
||||
buf.push('\n');
|
||||
|
||||
add_spaces(buf, indent);
|
||||
}
|
||||
|
||||
pub fn add_spaces<'a>(buf: &mut String<'a>, spaces: u16) {
|
||||
pub fn add_spaces(buf: &mut String<'_>, spaces: u16) {
|
||||
for _ in 0..spaces {
|
||||
buf.push(' ');
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue