Skip to content

Commit

Permalink
fixing clippy warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
WeirdConstructor committed Aug 4, 2020
1 parent 4c1db8d commit 4043cc7
Show file tree
Hide file tree
Showing 4 changed files with 116 additions and 112 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "wlambda"
version = "0.6.3-alpha1"
version = "0.6.3"
authors = ["Weird Constructor <[email protected]>"]
license = "GPL-3.0-or-later"
edition = "2018"
Expand Down
2 changes: 1 addition & 1 deletion doc/wlambda_reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -1618,7 +1618,7 @@ not panic but transform the error value into its string representation.
```wlambda
!r = std:error_to_str $e "TEST";
std:assert_eq r "$e[1,22:<wlambda::eval>(Err)] \"TEST\"";
std:assert_eq r "$e[1,26:<wlambda::eval>(Err)] \"TEST\"";
```

WARNING: The string representation might change between wlambda versions.
Expand Down
16 changes: 8 additions & 8 deletions src/prelude.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1632,7 +1632,7 @@ not panic but transform the error value into its string representation.
```wlambda
!r = std:error_to_str $e "TEST";
std:assert_eq r "$e[1,22:<wlambda::eval>(Err)] \"TEST\"";
std:assert_eq r "$e[1,26:<wlambda::eval>(Err)] \"TEST\"";
```
WARNING: The string representation might change between wlambda versions.
Expand Down Expand Up @@ -8955,13 +8955,13 @@ pub fn std_symbol_table() -> SymbolTable {

func!(st, "io:lines",
|env: &mut Env, argc: usize| {
let mut f = env.arg(0);
let mut ret = VVal::None;

if argc == 0 {
f = VVal::vec();
ret = f.clone();
}
let (f, mut ret) =
if argc == 0 {
let vec = VVal::vec();
(vec.clone(), vec)
} else {
(env.arg(0), VVal::None)
};

loop {
let mut line = String::new();
Expand Down
Loading

0 comments on commit 4043cc7

Please sign in to comment.