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

facet-rs / facet / 15180701629

22 May 2025 07:28AM UTC coverage: 57.185% (-0.4%) from 57.566%
15180701629

push

github

fasterthanlime
Fix definition of Utf8Path, Path and PathBuf

0 of 3 new or added lines in 2 files covered. (0.0%)

277 existing lines in 5 files now uncovered.

9475 of 16569 relevant lines covered (57.19%)

135.65 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 VTABLE: &'static ValueVTable =
NEW
5
        &const { value_vtable!(std::path::PathBuf, |f, _opts| write!(f, "PathBuf")) };
×
6

7
    const SHAPE: &'static Shape<'static> = &const {
8
        Shape::builder_for_sized::<Self>()
9
            .ty(Type::User(UserType::Opaque))
10
            .def(Def::Scalar(
11
                ScalarDef::builder()
12
                    .affinity(&const { ScalarAffinity::path().build() })
13
                    .build(),
14
            ))
15
            .build()
16
    };
17
}
18

19
unsafe impl Facet<'_> for std::path::Path {
20
    const VTABLE: &'static ValueVTable =
NEW
21
        &const { value_vtable_unsized!(std::path::Path, |f, _opts| write!(f, "Path")) };
×
22

23
    const SHAPE: &'static Shape<'static> = &const {
24
        Shape::builder_for_unsized::<Self>()
25
            .ty(Type::User(UserType::Opaque))
26
            .def(Def::Scalar(
27
                ScalarDef::builder()
28
                    .affinity(&const { ScalarAffinity::path().build() })
29
                    .build(),
30
            ))
31
            .build()
32
    };
33
}
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