blob: 8c71ef98b7fcfd450ed1a5fb9ee3ba0fdc335825 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
// rustfmt-format_strings: true
// rustfmt-max_width: 50
impl Foo {
fn cxx(&self, target: &str) -> &Path {
match self.cxx.get(target) {
Some(p) => p.path(),
None => panic!("\ntarget `{}`: is not, configured as a host,
only as a target\n\n", target),
}
}
}
|