Skip to content

Commit 969b680

Browse files
authored
refactor: simplify code (#3)
* refactor: simplify code * unify read functions
1 parent 226c811 commit 969b680

File tree

4 files changed

+251
-252
lines changed

4 files changed

+251
-252
lines changed

justfile

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,16 +22,16 @@ output_name := 'fsharp_tools_rs.so'
2222
output := output_dir / output_name
2323

2424
[linux]
25-
_deploy dir: build
26-
cp {{dir}}/libfsharp_tools_rs.so {{output}}
25+
_deploy dir:
26+
cp {{dir / 'libfsharp_tools_rs.so'}} {{output}}
2727

2828
[macos]
29-
_deploy dir: build
30-
cp {{dir}}/libfsharp_tools_rs.dylib {{output}}
29+
_deploy dir:
30+
cp {{dir / 'libfsharp_tools_rs.dylib'}} {{output}}
3131

3232
[windows]
33-
_deploy dir: build
34-
copy {{dir}}/fsharp_tools_rs.dll {{output}}
33+
_deploy dir:
34+
copy {{dir / 'fsharp_tools_rs.dll'}} {{output}}
3535

3636
deploy-debug: test build (_deploy debug_dir)
3737

lib/src/error.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
use std::fmt::Display;
22

33
#[derive(Debug)]
4-
pub(crate) enum Error {
4+
pub enum Error {
55
FileError(String),
66
LockError(String),
77
IOError(std::io::Error),

0 commit comments

Comments
 (0)