pub(crate) fn write_discovery<W>( writer: W, discovery: DiscoverProject<'_>, ) -> Result<()>where W: Write,