(license: &str)
| 10 | impl License { |
| 11 | #[new] |
| 12 | fn new(license: &str) -> Result<Self, crate::types::Error> { |
| 13 | // This should be infallible, as any non-spdx string is valid as an unknown license. |
| 14 | // That's why the error type here is undocumented. |
| 15 | let inner = alpm_types::License::new(license.into())?; |
| 16 | Ok(inner.into()) |
| 17 | } |
| 18 | |
| 19 | #[staticmethod] |
| 20 | fn from_valid_spdx(identifier: &str) -> Result<Self, crate::types::Error> { |
nothing calls this directly
no outgoing calls
no test coverage detected