• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

jstasiak / openpol / 14 / 1
65%
master: 65%

Build:
DEFAULT BRANCH: master
Ran 17 Aug 2019 08:42PM UTC
Files 5
Run time 0s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

17 Aug 2019 08:34PM UTC coverage: 71.053%. Remained the same
14.1

push

travis-ci

jstasiak
Simplify the generic load/save methods

Ok, so, I know what was wrong here. With a method signature like this:

    pub fn load<T: io::Read>(reader: &mut T)

I had to pass &mut &[u8] to load in order for the thing to work
correctly, because io::Read is implemented for &[u8] and I was adding
&mut on top of that in the reader parameter type – unnecessarily. Once I
removed that everything has fallen into place.

In the most problematic place once I removed &mut from &mut &*data what
was left was &*data and that's just converting a Vec to a reference to
a slice and this can be done more ergonomically.

108 of 152 relevant lines covered (71.05%)

0.76 hits per line

Source Files on job 14.1
  • Tree
  • List 0
  • Changed 3
  • Source Changed 3
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 12
  • Travis Job 14.1
  • 1c9f1b18 on github
  • Prev Job for on master (#13.1)
  • Next Job for on master (#15.1)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc