Skip to content

Commit 926d2fc

Browse files
committed
fix: gptk impl
- added missing impl for GPTK - fixed warnings and clippy
1 parent c313200 commit 926d2fc

File tree

3 files changed

+11
-1
lines changed

3 files changed

+11
-1
lines changed

src/downloader.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ impl std::future::Future for DownloadHandle {
5353

5454
impl DownloadHandle {
5555
pub fn status(&self) -> Status {
56-
self.status.borrow().clone()
56+
*self.status.borrow()
5757
}
5858

5959
pub fn cancel(self) {

src/runner/gptk.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,4 +78,12 @@ impl Runner for GPTK {
7878
// GPTK requires either x86_64 (Rosetta) or arm64 (Apple Silicon)
7979
arch_output == "i386" || arch_output == "arm64"
8080
}
81+
82+
fn info_mut(&mut self) -> &mut RunnerInfo {
83+
&mut self.info
84+
}
85+
86+
fn initialize(&self, _prefix: impl AsRef<Path>) -> Result<(), crate::Error> {
87+
todo!()
88+
}
8189
}

src/runner/wine.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ pub struct Wine {
1717
/// Determines whether a Wine prefix should be configured for 32-bit or 64-bit
1818
/// Windows compatibility. This affects which Windows applications can run
1919
/// in the prefix
20+
#[allow(dead_code)]
2021
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
2122
pub enum PrefixArch {
2223
/// 32-bit Windows prefix architecture
@@ -30,6 +31,7 @@ pub enum PrefixArch {
3031
/// Specifies which version of Windows the Wine prefix should emulate.
3132
/// Different applications may require specific Windows versions for
3233
/// optimal compatibility.
34+
#[allow(dead_code)]
3335
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
3436
pub enum WindowsVersion {
3537
Win7,

0 commit comments

Comments
 (0)