Remove deprecated last_token method from Annotations::Collector
Change-Id: I8eb93561a25a54b780a0243d13e4c5abe4a1e695
diff --git a/t/annotations-collect.t b/t/annotations-collect.t
index 1a8c45f..543e693 100644
--- a/t/annotations-collect.t
+++ b/t/annotations-collect.t
@@ -26,7 +26,7 @@
->attr_is('span fs f', 'name', 'lex')
;
-$loy = Test::XML::Loy->new($t->last_token->to_string(3));
+$loy = Test::XML::Loy->new($t->[-1]->to_string(3));
$loy->attr_is('span', 'id', 's3')
->attr_is('span', 'from', 15)