Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

minor fixes #84

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion dune-project
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
(lang dune 1.0)
(lang dune 1.1)
(name syndic)
(version dev)
1 change: 0 additions & 1 deletion lib/dune
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
(library
(name syndic)
(public_name syndic)
(libraries xmlm uri ptime))

Expand Down
2 changes: 1 addition & 1 deletion lib/syndic_atom.ml
Original file line number Diff line number Diff line change
Expand Up @@ -491,7 +491,7 @@ type source =
; updated: updated option }

let source ?(categories = []) ?(contributors = []) ?generator ?icon
?(links = []) ?logo ?rights ?subtitle ?updated ~authors ~id ~title =
?(links = []) ?logo ?rights ?subtitle ?updated ~authors ~id ~title () =
{ authors
; categories
; contributors
Expand Down
1 change: 1 addition & 0 deletions lib/syndic_atom.mli
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,7 @@ val source :
-> authors:author list
-> id:id
-> title:title
-> unit
-> source

(** A MIME type that conform to the syntax of a MIME media type, but MUST NOT
Expand Down
2 changes: 1 addition & 1 deletion test/generate.ml
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ let () =
let data = List.sort compare_entry (json_of_input ic) in
let oc = open_out (Fpath.to_string output) in
let ppf = Format.formatter_of_out_channel oc in
Fmt.pf ppf "%a@\n@\n%!" Fmt.(list ~sep:(always "@\n") pp_entry) data ;
Fmt.pf ppf "%a@\n@\n%!" Fmt.(list ~sep:(any "@\n") pp_entry) data ;
Fmt.pf ppf "%a@\n" pp_test data ;
close_out oc ;
exit success
2 changes: 1 addition & 1 deletion test/test.ml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ let parse ?xmlbase = function
| `Opml1 -> fun src -> `Opml1 (Syndic.Opml1.parse ?xmlbase src)

let string_of_src = function
| `Filename (_, uri) -> Fmt.strf "'%s'" (Uri.to_string uri)
| `Filename (_, uri) -> Fmt.str "'%s'" (Uri.to_string uri)
| `Data data ->
let buffer = Buffer.create 16 in
Buffer.add_string buffer (String.sub data 0 16) ;
Expand Down