|
97 | 97 |
|
98 | 98 | #![deny(missing_docs)] |
99 | 99 | #![allow(clippy::needless_doctest_main)] |
| 100 | +#![allow(clippy::uninlined_format_args)] |
100 | 101 |
|
101 | 102 | use std::env; |
102 | 103 | use std::fs::{create_dir_all, write}; |
@@ -200,6 +201,7 @@ impl ImportLibraryGenerator { |
200 | 201 | /// |
201 | 202 | /// The compile target environment ABI name (as in `CARGO_CFG_TARGET_ENV`) |
202 | 203 | /// is passed in `env`. |
| 204 | + #[must_use] |
203 | 205 | pub fn new(arch: &str, env: &str) -> Self { |
204 | 206 | ImportLibraryGenerator { |
205 | 207 | arch: arch.to_string(), |
@@ -293,8 +295,7 @@ impl ImportLibraryGenerator { |
293 | 295 | _ => return Err(Error::new(ErrorKind::Other, "Unsupported Python version")), |
294 | 296 | }, |
295 | 297 | PythonImplementation::PyPy => match self.version { |
296 | | - Some((3, 7)) => ("libpypy3-c.def", include_str!("libpypy3-c.def")), |
297 | | - Some((3, 8)) => ("libpypy3-c.def", include_str!("libpypy3-c.def")), |
| 298 | + Some((3, 7)) | Some((3, 8)) => ("libpypy3-c.def", include_str!("libpypy3-c.def")), |
298 | 299 | Some((3, 9)) => ("libpypy3.9-c.def", include_str!("libpypy3.9-c.def")), |
299 | 300 | Some((3, 10)) => ("libpypy3.10-c.def", include_str!("libpypy3.10-c.def")), |
300 | 301 | _ => return Err(Error::new(ErrorKind::Other, "Unsupported PyPy version")), |
@@ -500,7 +501,7 @@ fn get_mingw_dlltool(arch: &str) -> Result<Command> { |
500 | 501 | } |
501 | 502 | } |
502 | 503 |
|
503 | | -/// Finds the `zig` executable (when built by ``maturin --zig`). |
| 504 | +/// Finds the `zig` executable (when built by `maturin --zig`). |
504 | 505 | /// |
505 | 506 | /// Examines the `ZIG_COMMAND` environment variable |
506 | 507 | /// to find out if `zig cc` is being used as the linker. |
|
0 commit comments