Skip to content

Commit

Permalink
Merge pull request #1037 from talex5/fix-deprecation
Browse files Browse the repository at this point in the history
http: fix compiler warning
  • Loading branch information
samoht authored Jun 20, 2024
2 parents 1d9e14b + b7d5cac commit 935db5f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions cohttp/src/s.ml
Original file line number Diff line number Diff line change
Expand Up @@ -144,8 +144,8 @@ module type Response = sig
val version : t -> Code.version
val status : t -> Code.status_code

val flush :
(t -> bool[@deprecated "this field will be removed in the future"])
val flush : (t -> bool)
[@@deprecated "this field will be removed in the future"]

val compare : t -> t -> int

Expand Down
8 changes: 4 additions & 4 deletions http/src/http.mli
Original file line number Diff line number Diff line change
Expand Up @@ -465,10 +465,10 @@ module Response : sig
val status : t -> Status.t

val flush :
(t -> bool
[@deprecated
"this field will be removed in the future. Provide flush in the \
[respond_*] function instead."])
(t -> bool)
[@@deprecated
"this field will be removed in the future. Provide flush in the \
[respond_*] function instead."]

val compare : t -> t -> int

Expand Down

0 comments on commit 935db5f

Please sign in to comment.