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

facet-rs / facet / 14691847493

27 Apr 2025 12:05PM CUT coverage: 57.599% (+0.02%) from 57.58%
14691847493

Pull #459

github

web-flow
Merge 147beeaf9 into 3871af547
Pull Request #459: facet-args: Handle multiple positional args

3 of 3 new or added lines in 1 file covered. (100.0%)

7186 of 12476 relevant lines covered (57.6%)

75.78 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/facet-core/src/impls_std/path.rs
1
use crate::*;
2

3
unsafe impl Facet<'_> for std::path::PathBuf {
4
    const SHAPE: &'static Shape = &const {
5
        Shape::builder_for_sized::<Self>()
6
            .def(Def::Scalar(
7
                ScalarDef::builder()
8
                    .affinity(ScalarAffinity::path().build())
9
                    .build(),
10
            ))
11
            .vtable(&const { value_vtable!((), |f, _opts| write!(f, "PathBuf")) })
×
12
            .build()
13
    };
14
}
15

16
unsafe impl<'a> Facet<'a> for &'a std::path::Path {
17
    const SHAPE: &'static Shape = &const {
18
        Shape::builder_for_sized::<Self>()
19
            .def(Def::Scalar(
20
                ScalarDef::builder()
21
                    .affinity(ScalarAffinity::path().build())
22
                    .build(),
23
            ))
24
            .vtable(&const { value_vtable!((), |f, _opts| write!(f, "Path")) })
×
25
            .build()
26
    };
27
}
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

© 2025 Coveralls, Inc