Skip to content

Commit

Permalink
Merge pull request #4 from tmcgilchrist/fmt_deprecations
Browse files Browse the repository at this point in the history
Remove usages of deprecated Fmt functions.
  • Loading branch information
tmcgilchrist committed Nov 1, 2021
2 parents b01b628 + 13d0404 commit 1372766
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,5 @@ _build/
*.install

# Local OPAM switch
_opam/
_opam
/_coverage/
6 changes: 3 additions & 3 deletions lib/changes.ml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ module Release = struct
let pp f = function
| ReleaseChange (header, changes) ->
Fmt.pf f "# %a\n%a" pp_header header
Fmt.(list ~sep:(unit "\n") Change.pp)
Fmt.(list ~sep:(any "\n") Change.pp)
changes
end

Expand Down Expand Up @@ -262,7 +262,7 @@ let of_string = of_ MParser.parse_string
let of_channel = of_ MParser.parse_channel

let pp f changelog =
Fmt.pf f "%a" Fmt.(list ~sep:(unit "\n\n") Release.pp) changelog
Fmt.pf f "%a" Fmt.(list ~sep:(any "\n\n") Release.pp) changelog

let to_string changelog =
Fmt.strf "%a" Fmt.(list ~sep:(unit "\n\n") Release.pp) changelog
Fmt.str "%a" Fmt.(list ~sep:(any "\n\n") Release.pp) changelog

0 comments on commit 1372766

Please sign in to comment.