We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 005d111 commit cc64a83Copy full SHA for cc64a83
src/path.rs
@@ -10,18 +10,14 @@ pub struct ForeignInterfacePath {
10
}
11
12
impl ForeignInterfacePath {
13
- pub fn new(
14
- package_name: String,
15
- interface_name: String,
16
- version: Option<Version>,
17
- ) -> Self {
+ pub fn new(package_name: String, interface_name: String, version: Option<Version>) -> Self {
18
ForeignInterfacePath {
19
package_name,
20
interface_name,
21
version,
22
23
24
-
+
25
pub fn package_name(&self) -> &str {
26
self.package_name.as_ref()
27
@@ -64,7 +60,7 @@ impl InterfacePath {
64
60
65
61
66
62
67
63
68
pub fn package_name(&self) -> Option<&str> {
69
self.package_name.as_ref().map(|n| n.as_str())
70
0 commit comments