Remove the default add function
This commit is contained in:
parent
fd8f18de9a
commit
980cc2d42d
15
src/lib.rs
15
src/lib.rs
@ -1,18 +1,3 @@
|
|||||||
pub mod router;
|
pub mod router;
|
||||||
pub mod entities;
|
pub mod entities;
|
||||||
pub mod utilities;
|
pub mod utilities;
|
||||||
|
|
||||||
pub fn add(left: usize, right: usize) -> usize {
|
|
||||||
left + right
|
|
||||||
}
|
|
||||||
|
|
||||||
#[cfg(test)]
|
|
||||||
mod tests {
|
|
||||||
use super::*;
|
|
||||||
|
|
||||||
#[test]
|
|
||||||
fn it_works() {
|
|
||||||
let result = add(2, 2);
|
|
||||||
assert_eq!(result, 4);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
Loading…
Reference in New Issue
Block a user