disk: methods of Filesystem take it by ref
Convert all methods of `Filesystem` to pass it by reference not by value.
This commit is contained in:
parent
5bf4892077
commit
34781214cf
1 changed files with 1 additions and 1 deletions
|
|
@ -240,7 +240,7 @@ func (p *Partition) QEMUPartition() osbuild.QEMUPartition {
|
|||
}
|
||||
|
||||
// Converts Filesystem to osbuild.QEMUFilesystem that encodes the same fs.
|
||||
func (fs Filesystem) QEMUFilesystem() osbuild.QEMUFilesystem {
|
||||
func (fs *Filesystem) QEMUFilesystem() osbuild.QEMUFilesystem {
|
||||
return osbuild.QEMUFilesystem{
|
||||
Type: fs.Type,
|
||||
UUID: fs.UUID,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue