refactor(dtmm): Remove unused field
This commit is contained in:
parent
8edb8b357e
commit
ac44883199
2 changed files with 5 additions and 15 deletions
|
@ -32,11 +32,7 @@ pub(crate) async fn import_mod(state: ActionState, info: FileInfo) -> Result<Mod
|
|||
.file_name()
|
||||
.and_then(|s| s.to_str())
|
||||
.and_then(NexusApi::parse_file_name)
|
||||
.map(|(_, id, version, updated)| NexusInfo {
|
||||
id,
|
||||
version,
|
||||
updated,
|
||||
});
|
||||
.map(|(_, id, version, _)| NexusInfo { id, version });
|
||||
|
||||
let mut archive = ZipArchive::new(data).wrap_err("Failed to open ZIP archive")?;
|
||||
|
||||
|
@ -382,7 +378,6 @@ async fn check_mod_update(info: Arc<ModInfo>, api: Arc<NexusApi>) -> Result<Opti
|
|||
let updated_nexus = NexusInfo {
|
||||
id: nexus.id,
|
||||
version: updated_info.version,
|
||||
updated: updated_info.updated_timestamp,
|
||||
};
|
||||
|
||||
let mut info = Arc::unwrap_or_clone(info);
|
||||
|
|
|
@ -1,11 +1,9 @@
|
|||
use std::{path::PathBuf, sync::Arc};
|
||||
use std::path::PathBuf;
|
||||
use std::sync::Arc;
|
||||
|
||||
use druid::{
|
||||
im::{HashMap, Vector},
|
||||
Data, ImageBuf, Lens, WindowHandle, WindowId,
|
||||
};
|
||||
use druid::im::{HashMap, Vector};
|
||||
use druid::{Data, ImageBuf, Lens, WindowHandle, WindowId};
|
||||
use dtmt_shared::ModConfig;
|
||||
use time::OffsetDateTime;
|
||||
|
||||
use super::SelectedModLens;
|
||||
|
||||
|
@ -74,9 +72,6 @@ impl From<dtmt_shared::ModDependency> for ModDependency {
|
|||
pub(crate) struct NexusInfo {
|
||||
pub id: u64,
|
||||
pub version: String,
|
||||
#[data(ignore)]
|
||||
#[serde(with = "time::serde::timestamp")]
|
||||
pub updated: OffsetDateTime,
|
||||
}
|
||||
|
||||
#[derive(Clone, Data, Debug, Lens)]
|
||||
|
|
Loading…
Add table
Reference in a new issue