c_api: use the From conversion trait for the flags

7 jobs for <span class="ref-name">c_api</span> in 29 minutes and 39 seconds (queued for 4 seconds)
Status Job ID Name Coverage
  Test
passed #233883
fedora test

00:07:48

 
  Lint
manual #233885
allowed to fail manual
clippy
manual #233884
allowed to fail manual
rustfmt
passed #233886
tarball

00:12:17

 
  Cross Distro
passed #233889
debian_i386:testing

00:09:32

failed #233888
allowed to fail
debian:testing

00:02:41

passed #233887
allowed to fail
fedora:rawhide

00:08:47

 
Name Stage Failure
failed
debian:testing Cross Distro
make[2]: *** [Makefile:1901: /builds/pborelli/librsvg/_build/target/debug/librsvg_internals.a] Segmentation fault (core dumped)
make[1]: Leaving directory '/builds/pborelli/librsvg/_build'
make[1]: *** [Makefile:1413: all-recursive] Error 1
make: *** [Makefile:953: all] Error 2
Uploading artifacts...
WARNING: _build/tests/*.log: no matching files
WARNING: _build/tests/output/: no matching files
ERROR: No files to upload
ERROR: Job failed: exit code 1