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

jstasiak / openpol / 14
65%

Build:
DEFAULT BRANCH: master
Ran 17 Aug 2019 08:42PM UTC
Jobs 1
Files 5
Run time 1s
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

pending completion
14

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

Jobs
ID Job ID Ran Files Coverage
1 14.1 17 Aug 2019 08:42PM UTC 0
71.05
Travis Job 14.1
Source Files on build 14
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #14
  • 1c9f1b18 on github
  • Prev Build on master (#13)
  • Next Build on master (#15)
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