projects
/
rust-101.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
also build workspace crate
[rust-101.git]
/
workspace
/
src
/
part06.rs
diff --git
a/workspace/src/part06.rs
b/workspace/src/part06.rs
index 8b69022bfa3792ffefebbe1ff9bb37d5bf5edbf9..a62560ea4bb300b7f725f543c91e773366b22cc8 100644
(file)
--- a/
workspace/src/part06.rs
+++ b/
workspace/src/part06.rs
@@
-24,8
+24,7
@@
impl BigInt {
}
}
}
}
-// Now we can write `vec_min`. However, in order to make it type-check, we have to make a full (deep) copy of e
-// by calling `clone()`.
+// Now we can write `vec_min`.
fn vec_min(v: &Vec<BigInt>) -> Option<BigInt> {
let mut min: Option<BigInt> = None;
for e in v {
fn vec_min(v: &Vec<BigInt>) -> Option<BigInt> {
let mut min: Option<BigInt> = None;
for e in v {