Skip to content
Snippets Groups Projects
  • Carl Lerche's avatar
    06b94c55
    Remove buf::Source in favor of buf::IntoBuf · 06b94c55
    Carl Lerche authored
    The `Source` trait was essentially covering the same case as `IntoBuf`,
    so remove it.
    
    While technically a breaking change, this should not have any impact due
    to:
    
    1) There are no reverse dependencies that currently depend on `bytes`
    2) Source was not supposed to be implemented externally
    3) IntoBuf provides the same implementations as `Source`
    
    Given these points, the change should be safe to apply.
    06b94c55
    History
    Remove buf::Source in favor of buf::IntoBuf
    Carl Lerche authored
    The `Source` trait was essentially covering the same case as `IntoBuf`,
    so remove it.
    
    While technically a breaking change, this should not have any impact due
    to:
    
    1) There are no reverse dependencies that currently depend on `bytes`
    2) Source was not supposed to be implemented externally
    3) IntoBuf provides the same implementations as `Source`
    
    Given these points, the change should be safe to apply.