remove useless lifetime of ArchiveBuilder

This commit is contained in:
823984418 2024-02-26 22:37:04 +08:00
parent 0abd3b76b7
commit 7f34119c1a

View File

@ -10,7 +10,7 @@
pub(crate) struct ArArchiveBuilderBuilder; pub(crate) struct ArArchiveBuilderBuilder;
impl ArchiveBuilderBuilder for ArArchiveBuilderBuilder { impl ArchiveBuilderBuilder for ArArchiveBuilderBuilder {
fn new_archive_builder<'a>(&self, sess: &'a Session) -> Box<dyn ArchiveBuilder<'a> + 'a> { fn new_archive_builder<'a>(&self, sess: &'a Session) -> Box<dyn ArchiveBuilder + 'a> {
Box::new(ArArchiveBuilder::new(sess, get_native_object_symbols)) Box::new(ArArchiveBuilder::new(sess, get_native_object_symbols))
} }