diff options
author | GeckoEidechse <gecko.eidechse+git@pm.me> | 2023-05-10 02:45:37 +0200 |
---|---|---|
committer | GeckoEidechse <gecko.eidechse+git@pm.me> | 2023-05-10 02:45:37 +0200 |
commit | 11bd3a3a4f87bedd216bba9b6cb148659d42cf8d (patch) | |
tree | 22b42004077f7b71ec35403d9fe361af6607b223 /src-tauri | |
parent | 0eac6d298ca31fdf8e8b5c65d9c7e18b85cbcec7 (diff) | |
download | FlightCore-11bd3a3a4f87bedd216bba9b6cb148659d42cf8d.tar.gz FlightCore-11bd3a3a4f87bedd216bba9b6cb148659d42cf8d.zip |
refactor: Import constants from crate root
Instead of lib
Diffstat (limited to 'src-tauri')
-rw-r--r-- | src-tauri/src/github/mod.rs | 2 | ||||
-rw-r--r-- | src-tauri/src/mod_management/mod.rs | 2 | ||||
-rw-r--r-- | src-tauri/src/thunderstore/mod.rs | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/src-tauri/src/github/mod.rs b/src-tauri/src/github/mod.rs index 0493ada5..a4e390d3 100644 --- a/src-tauri/src/github/mod.rs +++ b/src-tauri/src/github/mod.rs @@ -1,7 +1,7 @@ pub mod pull_requests; pub mod release_notes; -use app::constants::{ +use crate::constants::{ APP_USER_AGENT, FLIGHTCORE_REPO_NAME, NORTHSTAR_RELEASE_REPO_NAME, SECTION_ORDER, }; use regex::Regex; diff --git a/src-tauri/src/mod_management/mod.rs b/src-tauri/src/mod_management/mod.rs index 9086302b..08b1e965 100644 --- a/src-tauri/src/mod_management/mod.rs +++ b/src-tauri/src/mod_management/mod.rs @@ -1,6 +1,6 @@ // This file contains various mod management functions -use app::constants::{BLACKLISTED_MODS, CORE_MODS}; +use crate::constants::{BLACKLISTED_MODS, CORE_MODS}; use async_recursion::async_recursion; use anyhow::{anyhow, Result}; diff --git a/src-tauri/src/thunderstore/mod.rs b/src-tauri/src/thunderstore/mod.rs index e9eb30d7..bd4204b4 100644 --- a/src-tauri/src/thunderstore/mod.rs +++ b/src-tauri/src/thunderstore/mod.rs @@ -1,5 +1,5 @@ //! For interacting with Thunderstore API -use app::constants::{APP_USER_AGENT, BLACKLISTED_MODS}; +use crate::constants::{APP_USER_AGENT, BLACKLISTED_MODS}; use serde::{Deserialize, Serialize}; use std::collections::HashSet; use ts_rs::TS; |