Skip to content

Commit

Permalink
rebaseline proc_macro_tests
Browse files Browse the repository at this point in the history
  • Loading branch information
keithamus committed Nov 3, 2024
1 parent f9092a5 commit e1f6094
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 44 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,24 +58,24 @@ impl<'a> ::hdx_writer::WriteCss<'a> for Foo {
let mut written = false;
if let Some(inner) = &self.0 {
if written {
sink.write_char(' ');
sink.write_char(' ')?;
}
written = true;
inner.write_css(sink);
inner.write_css(sink)?;
}
if let Some(inner) = &self.1 {
if written {
sink.write_char(' ');
sink.write_char(' ')?;
}
written = true;
inner.write_css(sink);
inner.write_css(sink)?;
}
if let Some(inner) = &self.2 {
if written {
sink.write_char(' ');
sink.write_char(' ')?;
}
written = true;
inner.write_css(sink);
inner.write_css(sink)?;
}
Ok(())
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@ impl<'a> ::hdx_writer::WriteCss<'a> for Foo {
sink: &mut W,
) -> ::hdx_writer::Result {
use ::hdx_writer::WriteCss;
self.0.write_css(sink);
self.0.write_css(sink)?;
if let Some(inner) = &self.1 {
sink.write_char(' ');
inner.write_css(sink);
sink.write_char(' ')?;
inner.write_css(sink)?;
}
Ok(())
}
Expand Down

This file was deleted.

4 changes: 2 additions & 2 deletions crates/hdx_proc_macro/src/test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -266,10 +266,10 @@ fn value_lone_type() {
}

#[test]
fn value_lone_type_adds_lifetime_when_necessary() {
fn value_lone_type_errors_with_lifetime_when_necessary() {
let syntax = to_valuedef! { <string> }; // <string> needs 'a lifetime
let data = to_deriveinput! { struct Foo; };
assert_snapshot!(syntax, data, "value_lone_type_adds_lifetime_when_necessary");
assert_snapshot!(syntax, data, "value_lone_type_errors_with_lifetime_when_necessary");
}

#[test]
Expand Down

0 comments on commit e1f6094

Please sign in to comment.