Skip to content

Commit ca237da

Browse files
committed
Merge branch 'master' of github.com:rage/tmc-langs-rust
2 parents 590f331 + e0ead0e commit ca237da

File tree

5 files changed

+6
-4
lines changed

5 files changed

+6
-4
lines changed

plugins/python3/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ serde = "1"
1313
serde_json = "1"
1414
thiserror = "1"
1515
walkdir = "2"
16+
dunce = "1"
1617

1718
[dev-dependencies]
1819
env_logger = "0.8"

plugins/python3/src/plugin.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -252,9 +252,8 @@ fn run_tmc_command(
252252
});
253253
}
254254

255-
let path = path
256-
.canonicalize()
257-
.map_err(|e| PythonError::Canonicalize(path.to_path_buf(), e))?;
255+
let path =
256+
dunce::canonicalize(path).map_err(|e| PythonError::Canonicalize(path.to_path_buf(), e))?;
258257
log::debug!("running tmc command at {}", path.display());
259258
let common_args = ["-m", "tmc"];
260259

tmc-langs-cli/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "tmc-langs-cli"
3-
version = "0.4.1"
3+
version = "0.5.0"
44
authors = ["University of Helsinki <mooc@cs.helsinki.fi>", "Daniel Martinez <daniel.x.martinez@helsinki.fi>"]
55
edition = "2018"
66
description = "CLI client for TMC"

tmc-langs-util/src/error.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
//! Contains the crate error type
22
3+
#[cfg(unix)]
34
use crate::task_executor::ModeBits;
45
use std::path::PathBuf;
56
use thiserror::Error;

tmc-langs-util/src/progress_reporter.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ use std::time::Instant;
66

77
/// The format for all status updates. May contain some data.
88
#[derive(Debug, Serialize)]
9+
#[serde(rename_all = "kebab-case")]
910
pub struct StatusUpdate<T> {
1011
pub finished: bool,
1112
pub message: String,

0 commit comments

Comments
 (0)