File tree Expand file tree Collapse file tree 5 files changed +6
-4
lines changed Expand file tree Collapse file tree 5 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ serde = "1"
1313serde_json = " 1"
1414thiserror = " 1"
1515walkdir = " 2"
16+ dunce = " 1"
1617
1718[dev-dependencies ]
1819env_logger = " 0.8"
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change 11[package ]
22name = " tmc-langs-cli"
3- version = " 0.4.1 "
3+ version = " 0.5.0 "
44authors = [" University of Helsinki <mooc@cs.helsinki.fi>" , " Daniel Martinez <daniel.x.martinez@helsinki.fi>" ]
55edition = " 2018"
66description = " CLI client for TMC"
Original file line number Diff line number Diff line change 11//! Contains the crate error type
22
3+ #[ cfg( unix) ]
34use crate :: task_executor:: ModeBits ;
45use std:: path:: PathBuf ;
56use thiserror:: Error ;
Original file line number Diff line number Diff 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" ) ]
910pub struct StatusUpdate < T > {
1011 pub finished : bool ,
1112 pub message : String ,
You can’t perform that action at this time.
0 commit comments