Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: import from crate:: (instead of super::) when possible #54

Merged
merged 1 commit into from
Jul 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/calculate/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ mod pass_2;
mod pass_3;
mod pass_4;

use super::info::Info;
use crate::info::Info;
use item::Item;

#[derive(Serialize, Debug)]
Expand Down
2 changes: 1 addition & 1 deletion src/info.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use std::collections::BTreeMap;

use super::data_types;
use crate::data_types;

pub trait Info {
fn skills(&self) -> &BTreeMap<i32, i32>;
Expand Down
4 changes: 2 additions & 2 deletions src/rust/info.rs
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
use std::collections::{BTreeMap, HashMap};
use std::path::PathBuf;

use super::super::data_types;
use super::super::info::Info;
use super::esf_data;
use super::protobuf;
use crate::data_types;
use crate::info::Info;

pub struct InfoMain {
pub fit: data_types::EsfFit,
Expand Down
6 changes: 3 additions & 3 deletions src/wasm/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ use serde_wasm_bindgen;
use std::collections::BTreeMap;
use wasm_bindgen::prelude::*;

use super::calculate;
use super::data_types;
use super::info::Info;
use crate::calculate;
use crate::data_types;
use crate::info::Info;

#[wasm_bindgen]
extern "C" {
Expand Down
Loading