Skip to content

Commit 6844e46

Browse files
committed
Import fixes
1 parent fcc48d5 commit 6844e46

File tree

5 files changed

+4
-7
lines changed

5 files changed

+4
-7
lines changed

Cargo.lock

-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crates/bindings/tmc-langs-node/Cargo.toml

-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ version = "1.0.0"
1818

1919
[dependencies]
2020
tmc-langs = { workspace = true, features = ["ts-rs"] }
21-
tmc-langs-util = { workspace = true }
2221

2322
base64 = "0.22.0"
2423
env_logger = "0.11.2"

crates/bindings/tmc-langs-node/src/helpers.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ macro_rules! lock {
99
( $cx: ident, $( $path: expr ),+ ) => {
1010
$(
1111
let path_buf: PathBuf = (&$path).into();
12-
let mut lock = ::tmc_langs_util::file_util::Lock::file(path_buf, ::tmc_langs_util::file_util::LockOptions::Write).map_err(|e| $crate::helpers::convert_err(&mut $cx, e))?;
12+
let mut lock = $crate::file_util::Lock::file(path_buf, $crate::file_util::LockOptions::Write).map_err(|e| $crate::helpers::convert_err(&mut $cx, e))?;
1313
let _guard = lock.lock().map_err(|e| $crate::helpers::convert_err(&mut $cx, e))?;
1414
)*
1515
};

crates/bindings/tmc-langs-node/src/lib.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ use std::{
1616
};
1717
use thiserror::Error;
1818
use tmc_langs::{
19+
file_util,
1920
tmc::{
2021
request::FeedbackAnswer,
2122
response::{NewSubmission, SubmissionFinished},
@@ -24,7 +25,6 @@ use tmc_langs::{
2425
Compression, Credentials, DownloadOrUpdateCourseExercisesResult, LangsError, Language,
2526
PrepareSubmission, TmcConfig,
2627
};
27-
use tmc_langs_util::file_util;
2828

2929
#[derive(Debug, Error)]
3030
enum NodeError {
@@ -135,7 +135,7 @@ fn extract_project(mut cx: FunctionContext) -> JsResult<JsValue> {
135135
);
136136

137137
let mut archive_lock = file_util::Lock::file(archive_path, file_util::LockOptions::Read)
138-
.map_err(|e: tmc_langs_util::FileError| convert_err(&mut cx, e))?;
138+
.map_err(|e| convert_err(&mut cx, e))?;
139139
let mut archive_guard = archive_lock.lock().map_err(|e| convert_err(&mut cx, e))?;
140140
let mut data = vec![];
141141
archive_guard

crates/tmc-langs/src/lib.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,8 @@ pub use tmc_langs_framework::{
5050
use tmc_langs_plugins::{
5151
CSharpPlugin, MakePlugin, NoTestsPlugin, Plugin, PluginType, Python3Plugin, RPlugin,
5252
};
53-
use tmc_langs_util::file_util;
5453
// the Java plugin is disabled on musl
55-
pub use tmc_langs_util::{notification_reporter, progress_reporter};
54+
pub use tmc_langs_util::{file_util, notification_reporter, progress_reporter};
5655
pub use tmc_mooc_client as mooc;
5756
pub use tmc_testmycode_client as tmc;
5857
use toml::Value as TomlValue;

0 commit comments

Comments
 (0)