This commit is contained in:
Swrup 2025-05-02 19:55:00 +02:00
parent a37c5d3ca8
commit ec90cda066
3 changed files with 3 additions and 5 deletions

View file

@ -1,4 +1,4 @@
version=0.24.1
version=0.27.0
assignment-operator=end-line
break-cases=fit
break-fun-decl=wrap

View file

@ -64,8 +64,7 @@ let count_wheat map =
let count' =
Array.fold_left
(fun count -> function
| Wheat -> succ count
| Black | Grass | Water -> count )
| Wheat -> succ count | Black | Grass | Water -> count )
0 a
in
count + count' )

View file

@ -154,8 +154,7 @@ let list () =
Ok
(Format.asprintf "<ul>%a</ul>"
(Format.pp_print_list (fun fmt -> function
| s -> Format.fprintf fmt {|<li><a href="/user/%s">%s</a></li>|} s s )
)
| s -> Format.fprintf fmt {|<li><a href="/user/%s">%s</a></li>|} s s ))
users )
let get_nick_unsafe request = Option.get @@ Dream.session "nick" request