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