fmt, allow unused

This commit is contained in:
Nuke
2023-10-17 11:47:31 -06:00
parent 0ec00e1850
commit bcb015a622
2 changed files with 8 additions and 4 deletions
+2 -2
View File
@@ -8,8 +8,8 @@
//! code snippets**. You may only trace them manually in your head or on paper. Pretend that this
//! portion of the exam is being administered on paper, and no computer is available at all.
//!
//! To enable us to auto-grade your answer, you implement the code that returns the `char` representing
//! your answer.
//! To enable us to auto-grade your answer, you implement the code that returns the `char`
//! representing your answer.
//!
//! If you would like a rendered and styled version of these questions simply build an open the Rust
//! Docs for this module, and navigate the the multiple choice question module docs by the command:
+6 -2
View File
@@ -87,10 +87,11 @@ mod tests {
assert_eq!(macro_generated, expected);
}
#[allow(unused_imports)]
#[test]
fn impl_get() {
use super::Get;
impl_get!(
// should generate `struct Foo` that implements `Get<u32>`
Foo: u32 = 10;
@@ -104,7 +105,10 @@ mod tests {
// assert_eq!(Foo::get(), 10);
// assert_eq!(Bar::get(), 42);
// assert_eq!(Baz::get(), 21);
assert_eq!(true, false, "Make sure to remove this line and uncomment the tests above");
assert_eq!(
true, false,
"Make sure to remove this line and uncomment the tests above"
);
// As an extra, ungraded, challenge, try to make this work.
// This is not part of the main problem because it requires the nightly compiler.